From 37d8a71395ecd98ce13ca6a5d989a3419f09a4e0 Mon Sep 17 00:00:00 2001 From: cedricve Date: Fri, 4 Jun 2021 21:51:49 +0200 Subject: [PATCH] rename imports --- .idea/.gitignore | 8 ++++++++ .idea/modules.xml | 8 ++++++++ .idea/onvif.iml | 9 +++++++++ .idea/vcs.xml | 6 ++++++ Device.go | 8 ++++---- Imaging/types.go | 4 ++-- README.md | 2 +- analytics/types.go | 4 ++-- api/api.go | 8 ++++---- api/get_structs.go | 6 +++--- device/types.go | 4 ++-- event/operation.go | 2 +- event/types.go | 2 +- examples/DeviceService.go | 10 +++++----- examples/discovery_test.go | 6 +++--- go.mod | 2 +- media/types.go | 4 ++-- ptz/types.go | 4 ++-- ws-discovery/ws-discovery.go | 2 +- xsd/built_in.go | 2 +- xsd/onvif/onvif.go | 2 +- 21 files changed, 67 insertions(+), 36 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/modules.xml create mode 100644 .idea/onvif.iml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..73f69e09 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..ce0aa0d1 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/onvif.iml b/.idea/onvif.iml new file mode 100644 index 00000000..5e764c4f --- /dev/null +++ b/.idea/onvif.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..94a25f7f --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Device.go b/Device.go index a2e175fc..191c32eb 100644 --- a/Device.go +++ b/Device.go @@ -12,10 +12,10 @@ import ( "strings" "github.com/beevik/etree" - "github.com/use-go/onvif/device" - "github.com/use-go/onvif/gosoap" - "github.com/use-go/onvif/networking" - wsdiscovery "github.com/use-go/onvif/ws-discovery" + "github.com/kerberos-io/onvif/device" + "github.com/kerberos-io/onvif/gosoap" + "github.com/kerberos-io/onvif/networking" + wsdiscovery "github.com/kerberos-io/onvif/ws-discovery" ) //Xlmns XML Scheam diff --git a/Imaging/types.go b/Imaging/types.go index 34742baf..cf0779a2 100644 --- a/Imaging/types.go +++ b/Imaging/types.go @@ -1,8 +1,8 @@ package imaging import ( - "github.com/use-go/onvif/xsd" - "github.com/use-go/onvif/xsd/onvif" + "github.com/kerberos-io/onvif/xsd" + "github.com/kerberos-io/onvif/xsd/onvif" ) type GetServiceCapabilities struct { diff --git a/README.md b/README.md index ed4b0f73..4ed2d2b1 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Simple management of onvif IP-devices cameras. onvif is an implementation of ON To install the library, use **go get**: ```go -go get github.com/use-go/onvif +go get github.com/kerberos-io/onvif ``` diff --git a/analytics/types.go b/analytics/types.go index afbeef37..2b9baf60 100644 --- a/analytics/types.go +++ b/analytics/types.go @@ -1,8 +1,8 @@ package analytics import ( - "github.com/use-go/onvif/xsd" - "github.com/use-go/onvif/xsd/onvif" + "github.com/kerberos-io/onvif/xsd" + "github.com/kerberos-io/onvif/xsd/onvif" ) type GetSupportedRules struct { diff --git a/api/api.go b/api/api.go index 233585f2..397fa260 100644 --- a/api/api.go +++ b/api/api.go @@ -12,10 +12,10 @@ import ( "github.com/beevik/etree" "github.com/gin-gonic/gin" - "github.com/use-go/onvif" - "github.com/use-go/onvif/gosoap" - "github.com/use-go/onvif/networking" - wsdiscovery "github.com/use-go/onvif/ws-discovery" + "github.com/kerberos-io/onvif" + "github.com/kerberos-io/onvif/gosoap" + "github.com/kerberos-io/onvif/networking" + wsdiscovery "github.com/kerberos-io/onvif/ws-discovery" ) func RunApi() { diff --git a/api/get_structs.go b/api/get_structs.go index 4bb78346..9957fe4f 100644 --- a/api/get_structs.go +++ b/api/get_structs.go @@ -3,9 +3,9 @@ package api import ( "errors" - "github.com/use-go/onvif/device" - "github.com/use-go/onvif/media" - "github.com/use-go/onvif/ptz" + "github.com/kerberos-io/onvif/device" + "github.com/kerberos-io/onvif/media" + "github.com/kerberos-io/onvif/ptz" ) func getPTZStructByName(name string) (interface{}, error) { diff --git a/device/types.go b/device/types.go index 329cddc2..79ed7558 100644 --- a/device/types.go +++ b/device/types.go @@ -1,8 +1,8 @@ package device import ( - "github.com/use-go/onvif/xsd" - "github.com/use-go/onvif/xsd/onvif" + "github.com/kerberos-io/onvif/xsd" + "github.com/kerberos-io/onvif/xsd/onvif" ) type Service struct { diff --git a/event/operation.go b/event/operation.go index a89625bf..d6b10d72 100644 --- a/event/operation.go +++ b/event/operation.go @@ -1,7 +1,7 @@ package event import ( - "github.com/use-go/onvif/xsd" + "github.com/kerberos-io/onvif/xsd" ) //GetServiceCapabilities action diff --git a/event/types.go b/event/types.go index 21a8f1df..b15d4721 100644 --- a/event/types.go +++ b/event/types.go @@ -1,7 +1,7 @@ package event import ( - "github.com/use-go/onvif/xsd" + "github.com/kerberos-io/onvif/xsd" ) //Address Alias diff --git a/examples/DeviceService.go b/examples/DeviceService.go index 8db0ba61..62a6c932 100644 --- a/examples/DeviceService.go +++ b/examples/DeviceService.go @@ -6,10 +6,10 @@ import ( "log" "net/http" - goonvif "github.com/use-go/onvif" - "github.com/use-go/onvif/device" - "github.com/use-go/onvif/gosoap" - "github.com/use-go/onvif/xsd/onvif" + goonvif "github.com/kerberos-io/onvif" + "github.com/kerberos-io/onvif/device" + "github.com/kerberos-io/onvif/gosoap" + "github.com/kerberos-io/onvif/xsd/onvif" ) const ( @@ -65,7 +65,7 @@ func main() { log.Println(err) } else { /* - You could use https://github.com/use-go/onvif/gosoap for pretty printing response + You could use https://github.com/kerberos-io/onvif/gosoap for pretty printing response */ fmt.Println(gosoap.SoapMessage(readResponse(createUserResponse)).StringIndent()) } diff --git a/examples/discovery_test.go b/examples/discovery_test.go index 630b28b3..da1754cd 100644 --- a/examples/discovery_test.go +++ b/examples/discovery_test.go @@ -10,9 +10,9 @@ import ( "testing" "github.com/beevik/etree" - "github.com/use-go/onvif" - "github.com/use-go/onvif/device" - discover "github.com/use-go/onvif/ws-discovery" + "github.com/kerberos-io/onvif" + "github.com/kerberos-io/onvif/device" + discover "github.com/kerberos-io/onvif/ws-discovery" ) func TestGetAvailableDevicesAtSpecificEthernetInterface(t *testing.T) { diff --git a/go.mod b/go.mod index 30ab34eb..ca1c8f39 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/use-go/onvif +module github.com/kerberos-io/onvif go 1.15 diff --git a/media/types.go b/media/types.go index cc80562e..47666606 100644 --- a/media/types.go +++ b/media/types.go @@ -1,8 +1,8 @@ package media import ( - "github.com/use-go/onvif/xsd" - "github.com/use-go/onvif/xsd/onvif" + "github.com/kerberos-io/onvif/xsd" + "github.com/kerberos-io/onvif/xsd/onvif" ) type Capabilities struct { diff --git a/ptz/types.go b/ptz/types.go index 3efdee1f..c5317cae 100644 --- a/ptz/types.go +++ b/ptz/types.go @@ -1,8 +1,8 @@ package ptz import ( - "github.com/use-go/onvif/xsd" - "github.com/use-go/onvif/xsd/onvif" + "github.com/kerberos-io/onvif/xsd" + "github.com/kerberos-io/onvif/xsd/onvif" ) type Capabilities struct { diff --git a/ws-discovery/ws-discovery.go b/ws-discovery/ws-discovery.go index dc45a0b1..e6c6293a 100644 --- a/ws-discovery/ws-discovery.go +++ b/ws-discovery/ws-discovery.go @@ -4,7 +4,7 @@ import ( "strings" "github.com/beevik/etree" - "github.com/use-go/onvif/gosoap" + "github.com/kerberos-io/onvif/gosoap" ) func buildProbeMessage(uuidV4 string, scopes, types []string, nmsp map[string]string) gosoap.SoapMessage { diff --git a/xsd/built_in.go b/xsd/built_in.go index b2a015fa..ffea950a 100644 --- a/xsd/built_in.go +++ b/xsd/built_in.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/use-go/onvif/xsd/iso8601" + "github.com/kerberos-io/onvif/xsd/iso8601" ) /* diff --git a/xsd/onvif/onvif.go b/xsd/onvif/onvif.go index e0aca6ed..8210695a 100644 --- a/xsd/onvif/onvif.go +++ b/xsd/onvif/onvif.go @@ -1,7 +1,7 @@ package onvif import ( - "github.com/use-go/onvif/xsd" + "github.com/kerberos-io/onvif/xsd" ) // BUG(r): Enum types implemented as simple string