diff --git a/README.md b/README.md index f8ae7423..1e6ab2a3 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ package main import ( "log" - "github.com/PaloAltoNetworks/pango" + "github.com/PaloAltoNetworks/pango/v2" ) func main() { diff --git a/audit/audit.go b/v2/audit/audit.go similarity index 97% rename from audit/audit.go rename to v2/audit/audit.go index 1d39f877..edddaa8f 100644 --- a/audit/audit.go +++ b/v2/audit/audit.go @@ -4,7 +4,7 @@ import ( "encoding/xml" "time" - "github.com/PaloAltoNetworks/pango/util" + "github.com/PaloAltoNetworks/pango/v2/util" ) // CommentHistory is a container for audit comment history. diff --git a/client.go b/v2/client.go similarity index 99% rename from client.go rename to v2/client.go index 8ea36a7e..c3f890d0 100644 --- a/client.go +++ b/v2/client.go @@ -18,12 +18,12 @@ import ( "strings" "time" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/plugin" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/plugin" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type LoggingInfo struct { diff --git a/crypto/ike/gateway/entry.go b/v2/crypto/ike/gateway/entry.go similarity index 99% rename from crypto/ike/gateway/entry.go rename to v2/crypto/ike/gateway/entry.go index 6cb44f52..6859fcaa 100644 --- a/crypto/ike/gateway/entry.go +++ b/v2/crypto/ike/gateway/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/crypto/ike/gateway/interfaces.go b/v2/crypto/ike/gateway/interfaces.go similarity index 100% rename from crypto/ike/gateway/interfaces.go rename to v2/crypto/ike/gateway/interfaces.go diff --git a/crypto/ike/gateway/location.go b/v2/crypto/ike/gateway/location.go similarity index 97% rename from crypto/ike/gateway/location.go rename to v2/crypto/ike/gateway/location.go index 3bdcdda2..1b9bd3d8 100644 --- a/crypto/ike/gateway/location.go +++ b/v2/crypto/ike/gateway/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/crypto/ike/gateway/service.go b/v2/crypto/ike/gateway/service.go similarity index 97% rename from crypto/ike/gateway/service.go rename to v2/crypto/ike/gateway/service.go index 312bab38..4ec91dca 100644 --- a/crypto/ike/gateway/service.go +++ b/v2/crypto/ike/gateway/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/adminrole/entry.go b/v2/device/adminrole/entry.go similarity index 99% rename from device/adminrole/entry.go rename to v2/device/adminrole/entry.go index 14fba28f..6977e9fb 100644 --- a/device/adminrole/entry.go +++ b/v2/device/adminrole/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/device/adminrole/interfaces.go b/v2/device/adminrole/interfaces.go similarity index 100% rename from device/adminrole/interfaces.go rename to v2/device/adminrole/interfaces.go diff --git a/device/adminrole/location.go b/v2/device/adminrole/location.go similarity index 94% rename from device/adminrole/location.go rename to v2/device/adminrole/location.go index 70adcbd8..398f51ba 100644 --- a/device/adminrole/location.go +++ b/v2/device/adminrole/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/adminrole/service.go b/v2/device/adminrole/service.go similarity index 97% rename from device/adminrole/service.go rename to v2/device/adminrole/service.go index 7b962c39..742ead6e 100644 --- a/device/adminrole/service.go +++ b/v2/device/adminrole/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/certificate/entry.go b/v2/device/certificate/entry.go similarity index 98% rename from device/certificate/entry.go rename to v2/device/certificate/entry.go index 39006ceb..cdde2b39 100644 --- a/device/certificate/entry.go +++ b/v2/device/certificate/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/device/certificate/interfaces.go b/v2/device/certificate/interfaces.go similarity index 100% rename from device/certificate/interfaces.go rename to v2/device/certificate/interfaces.go diff --git a/device/certificate/location.go b/v2/device/certificate/location.go similarity index 98% rename from device/certificate/location.go rename to v2/device/certificate/location.go index e09207f1..2e8f2475 100644 --- a/device/certificate/location.go +++ b/v2/device/certificate/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/certificate/service.go b/v2/device/certificate/service.go similarity index 96% rename from device/certificate/service.go rename to v2/device/certificate/service.go index 38ba7b5b..cf03ec4a 100644 --- a/device/certificate/service.go +++ b/v2/device/certificate/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/dynamicupdates/config.go b/v2/device/dynamicupdates/config.go similarity index 99% rename from device/dynamicupdates/config.go rename to v2/device/dynamicupdates/config.go index aa8e3410..07027722 100644 --- a/device/dynamicupdates/config.go +++ b/v2/device/dynamicupdates/config.go @@ -3,9 +3,9 @@ package dynamicupdates import ( "encoding/xml" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type Config struct { diff --git a/device/dynamicupdates/interfaces.go b/v2/device/dynamicupdates/interfaces.go similarity index 100% rename from device/dynamicupdates/interfaces.go rename to v2/device/dynamicupdates/interfaces.go diff --git a/device/dynamicupdates/location.go b/v2/device/dynamicupdates/location.go similarity index 96% rename from device/dynamicupdates/location.go rename to v2/device/dynamicupdates/location.go index 3f08436c..939a849a 100644 --- a/device/dynamicupdates/location.go +++ b/v2/device/dynamicupdates/location.go @@ -3,9 +3,9 @@ package dynamicupdates import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/dynamicupdates/service.go b/v2/device/dynamicupdates/service.go similarity index 96% rename from device/dynamicupdates/service.go rename to v2/device/dynamicupdates/service.go index 61fad124..8024e65b 100644 --- a/device/dynamicupdates/service.go +++ b/v2/device/dynamicupdates/service.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/profile/certificate/entry.go b/v2/device/profile/certificate/entry.go similarity index 98% rename from device/profile/certificate/entry.go rename to v2/device/profile/certificate/entry.go index 460dd43b..626296da 100644 --- a/device/profile/certificate/entry.go +++ b/v2/device/profile/certificate/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/device/profile/certificate/interfaces.go b/v2/device/profile/certificate/interfaces.go similarity index 100% rename from device/profile/certificate/interfaces.go rename to v2/device/profile/certificate/interfaces.go diff --git a/device/profile/certificate/location.go b/v2/device/profile/certificate/location.go similarity index 98% rename from device/profile/certificate/location.go rename to v2/device/profile/certificate/location.go index cae8a15e..243ad6dd 100644 --- a/device/profile/certificate/location.go +++ b/v2/device/profile/certificate/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/profile/certificate/service.go b/v2/device/profile/certificate/service.go similarity index 97% rename from device/profile/certificate/service.go rename to v2/device/profile/certificate/service.go index df09fe46..6c333957 100644 --- a/device/profile/certificate/service.go +++ b/v2/device/profile/certificate/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/profile/ssltls/entry.go b/v2/device/profile/ssltls/entry.go similarity index 97% rename from device/profile/ssltls/entry.go rename to v2/device/profile/ssltls/entry.go index 32e371b4..70d53dd9 100644 --- a/device/profile/ssltls/entry.go +++ b/v2/device/profile/ssltls/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/device/profile/ssltls/interfaces.go b/v2/device/profile/ssltls/interfaces.go similarity index 100% rename from device/profile/ssltls/interfaces.go rename to v2/device/profile/ssltls/interfaces.go diff --git a/device/profile/ssltls/location.go b/v2/device/profile/ssltls/location.go similarity index 98% rename from device/profile/ssltls/location.go rename to v2/device/profile/ssltls/location.go index cf315416..f409f7fb 100644 --- a/device/profile/ssltls/location.go +++ b/v2/device/profile/ssltls/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/profile/ssltls/service.go b/v2/device/profile/ssltls/service.go similarity index 97% rename from device/profile/ssltls/service.go rename to v2/device/profile/ssltls/service.go index ca46984a..01742b9c 100644 --- a/device/profile/ssltls/service.go +++ b/v2/device/profile/ssltls/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/profiles/ldap/entry.go b/v2/device/profiles/ldap/entry.go similarity index 97% rename from device/profiles/ldap/entry.go rename to v2/device/profiles/ldap/entry.go index b9450079..48bf50a0 100644 --- a/device/profiles/ldap/entry.go +++ b/v2/device/profiles/ldap/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/device/profiles/ldap/interfaces.go b/v2/device/profiles/ldap/interfaces.go similarity index 100% rename from device/profiles/ldap/interfaces.go rename to v2/device/profiles/ldap/interfaces.go diff --git a/device/profiles/ldap/location.go b/v2/device/profiles/ldap/location.go similarity index 98% rename from device/profiles/ldap/location.go rename to v2/device/profiles/ldap/location.go index 5afa64ae..68f49c7c 100644 --- a/device/profiles/ldap/location.go +++ b/v2/device/profiles/ldap/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/profiles/ldap/service.go b/v2/device/profiles/ldap/service.go similarity index 97% rename from device/profiles/ldap/service.go rename to v2/device/profiles/ldap/service.go index 382b251a..96b02319 100644 --- a/device/profiles/ldap/service.go +++ b/v2/device/profiles/ldap/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/services/dns/config.go b/v2/device/services/dns/config.go similarity index 96% rename from device/services/dns/config.go rename to v2/device/services/dns/config.go index 80e5a195..fefc6a05 100644 --- a/device/services/dns/config.go +++ b/v2/device/services/dns/config.go @@ -3,9 +3,9 @@ package dns import ( "encoding/xml" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type Config struct { diff --git a/device/services/dns/interfaces.go b/v2/device/services/dns/interfaces.go similarity index 100% rename from device/services/dns/interfaces.go rename to v2/device/services/dns/interfaces.go diff --git a/device/services/dns/location.go b/v2/device/services/dns/location.go similarity index 96% rename from device/services/dns/location.go rename to v2/device/services/dns/location.go index 80e147aa..17c23d5c 100644 --- a/device/services/dns/location.go +++ b/v2/device/services/dns/location.go @@ -3,9 +3,9 @@ package dns import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/services/dns/service.go b/v2/device/services/dns/service.go similarity index 96% rename from device/services/dns/service.go rename to v2/device/services/dns/service.go index 5932b43c..e2df4bd8 100644 --- a/device/services/dns/service.go +++ b/v2/device/services/dns/service.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/services/general/config.go b/v2/device/services/general/config.go similarity index 96% rename from device/services/general/config.go rename to v2/device/services/general/config.go index 76d53c8f..88876b51 100644 --- a/device/services/general/config.go +++ b/v2/device/services/general/config.go @@ -3,9 +3,9 @@ package general import ( "encoding/xml" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type Config struct { diff --git a/device/services/general/interfaces.go b/v2/device/services/general/interfaces.go similarity index 100% rename from device/services/general/interfaces.go rename to v2/device/services/general/interfaces.go diff --git a/device/services/general/location.go b/v2/device/services/general/location.go similarity index 96% rename from device/services/general/location.go rename to v2/device/services/general/location.go index b395ff15..1cff9cd8 100644 --- a/device/services/general/location.go +++ b/v2/device/services/general/location.go @@ -3,9 +3,9 @@ package general import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/services/general/service.go b/v2/device/services/general/service.go similarity index 96% rename from device/services/general/service.go rename to v2/device/services/general/service.go index fca53510..de6dfec5 100644 --- a/device/services/general/service.go +++ b/v2/device/services/general/service.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/services/ntp/config.go b/v2/device/services/ntp/config.go similarity index 99% rename from device/services/ntp/config.go rename to v2/device/services/ntp/config.go index 66505ab6..f8071662 100644 --- a/device/services/ntp/config.go +++ b/v2/device/services/ntp/config.go @@ -3,9 +3,9 @@ package ntp import ( "encoding/xml" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type Config struct { diff --git a/device/services/ntp/interfaces.go b/v2/device/services/ntp/interfaces.go similarity index 100% rename from device/services/ntp/interfaces.go rename to v2/device/services/ntp/interfaces.go diff --git a/device/services/ntp/location.go b/v2/device/services/ntp/location.go similarity index 96% rename from device/services/ntp/location.go rename to v2/device/services/ntp/location.go index 465c8420..da139268 100644 --- a/device/services/ntp/location.go +++ b/v2/device/services/ntp/location.go @@ -3,9 +3,9 @@ package ntp import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/services/ntp/service.go b/v2/device/services/ntp/service.go similarity index 96% rename from device/services/ntp/service.go rename to v2/device/services/ntp/service.go index 5849fcd9..66522677 100644 --- a/device/services/ntp/service.go +++ b/v2/device/services/ntp/service.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/device/ssldecrypt/config.go b/v2/device/ssldecrypt/config.go similarity index 98% rename from device/ssldecrypt/config.go rename to v2/device/ssldecrypt/config.go index 2016e666..3fa82ec2 100644 --- a/device/ssldecrypt/config.go +++ b/v2/device/ssldecrypt/config.go @@ -3,9 +3,9 @@ package ssldecrypt import ( "encoding/xml" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type Config struct { diff --git a/device/ssldecrypt/interfaces.go b/v2/device/ssldecrypt/interfaces.go similarity index 100% rename from device/ssldecrypt/interfaces.go rename to v2/device/ssldecrypt/interfaces.go diff --git a/device/ssldecrypt/location.go b/v2/device/ssldecrypt/location.go similarity index 98% rename from device/ssldecrypt/location.go rename to v2/device/ssldecrypt/location.go index cf27e2cf..b29dddaf 100644 --- a/device/ssldecrypt/location.go +++ b/v2/device/ssldecrypt/location.go @@ -3,9 +3,9 @@ package ssldecrypt import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/device/ssldecrypt/service.go b/v2/device/ssldecrypt/service.go similarity index 96% rename from device/ssldecrypt/service.go rename to v2/device/ssldecrypt/service.go index 58c80411..18b13c96 100644 --- a/device/ssldecrypt/service.go +++ b/v2/device/ssldecrypt/service.go @@ -4,9 +4,9 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/discard.go b/v2/discard.go similarity index 100% rename from discard.go rename to v2/discard.go diff --git a/errors/panos.go b/v2/errors/panos.go similarity index 100% rename from errors/panos.go rename to v2/errors/panos.go diff --git a/errors/panos_test.go b/v2/errors/panos_test.go similarity index 100% rename from errors/panos_test.go rename to v2/errors/panos_test.go diff --git a/example/main.go b/v2/example/main.go similarity index 96% rename from example/main.go rename to v2/example/main.go index 3a7df687..5c73b867 100644 --- a/example/main.go +++ b/v2/example/main.go @@ -5,25 +5,25 @@ import ( "fmt" "log" - "github.com/PaloAltoNetworks/pango" - "github.com/PaloAltoNetworks/pango/device/services/dns" - "github.com/PaloAltoNetworks/pango/device/services/ntp" - "github.com/PaloAltoNetworks/pango/movement" - "github.com/PaloAltoNetworks/pango/network/interface/ethernet" - "github.com/PaloAltoNetworks/pango/network/interface/loopback" - "github.com/PaloAltoNetworks/pango/network/profiles/interface_management" - "github.com/PaloAltoNetworks/pango/network/virtual_router" - "github.com/PaloAltoNetworks/pango/network/zone" - "github.com/PaloAltoNetworks/pango/objects/address" - address_group "github.com/PaloAltoNetworks/pango/objects/address/group" - tag "github.com/PaloAltoNetworks/pango/objects/admintag" - "github.com/PaloAltoNetworks/pango/objects/service" - service_group "github.com/PaloAltoNetworks/pango/objects/service/group" - "github.com/PaloAltoNetworks/pango/panorama/devicegroup" - "github.com/PaloAltoNetworks/pango/panorama/template" - "github.com/PaloAltoNetworks/pango/panorama/template_stack" - "github.com/PaloAltoNetworks/pango/policies/rules/security" - "github.com/PaloAltoNetworks/pango/util" + "github.com/PaloAltoNetworks/pango/v2" + "github.com/PaloAltoNetworks/pango/v2/device/services/dns" + "github.com/PaloAltoNetworks/pango/v2/device/services/ntp" + "github.com/PaloAltoNetworks/pango/v2/movement" + "github.com/PaloAltoNetworks/pango/v2/network/interface/ethernet" + "github.com/PaloAltoNetworks/pango/v2/network/interface/loopback" + "github.com/PaloAltoNetworks/pango/v2/network/profiles/interface_management" + "github.com/PaloAltoNetworks/pango/v2/network/virtual_router" + "github.com/PaloAltoNetworks/pango/v2/network/zone" + "github.com/PaloAltoNetworks/pango/v2/objects/address" + address_group "github.com/PaloAltoNetworks/pango/v2/objects/address/group" + tag "github.com/PaloAltoNetworks/pango/v2/objects/admintag" + "github.com/PaloAltoNetworks/pango/v2/objects/service" + service_group "github.com/PaloAltoNetworks/pango/v2/objects/service/group" + "github.com/PaloAltoNetworks/pango/v2/panorama/devicegroup" + "github.com/PaloAltoNetworks/pango/v2/panorama/template" + "github.com/PaloAltoNetworks/pango/v2/panorama/template_stack" + "github.com/PaloAltoNetworks/pango/v2/policies/rules/security" + "github.com/PaloAltoNetworks/pango/v2/util" ) func main() { diff --git a/filtering/contains.go b/v2/filtering/contains.go similarity index 94% rename from filtering/contains.go rename to v2/filtering/contains.go index 0ff25f60..cce9499c 100644 --- a/filtering/contains.go +++ b/v2/filtering/contains.go @@ -3,7 +3,7 @@ package filtering import ( "strings" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/contains_test.go b/v2/filtering/contains_test.go similarity index 100% rename from filtering/contains_test.go rename to v2/filtering/contains_test.go diff --git a/filtering/doc.go b/v2/filtering/doc.go similarity index 100% rename from filtering/doc.go rename to v2/filtering/doc.go diff --git a/filtering/does_not_contain.go b/v2/filtering/does_not_contain.go similarity index 95% rename from filtering/does_not_contain.go rename to v2/filtering/does_not_contain.go index 18852086..e9080d3b 100644 --- a/filtering/does_not_contain.go +++ b/v2/filtering/does_not_contain.go @@ -3,7 +3,7 @@ package filtering import ( "strings" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/does_not_end_with.go b/v2/filtering/does_not_end_with.go similarity index 95% rename from filtering/does_not_end_with.go rename to v2/filtering/does_not_end_with.go index 28f266ed..bc0135a4 100644 --- a/filtering/does_not_end_with.go +++ b/v2/filtering/does_not_end_with.go @@ -3,7 +3,7 @@ package filtering import ( "strings" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/does_not_match_regex.go b/v2/filtering/does_not_match_regex.go similarity index 95% rename from filtering/does_not_match_regex.go rename to v2/filtering/does_not_match_regex.go index b138185b..9a0d9a6c 100644 --- a/filtering/does_not_match_regex.go +++ b/v2/filtering/does_not_match_regex.go @@ -3,7 +3,7 @@ package filtering import ( "regexp" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/does_not_start_with.go b/v2/filtering/does_not_start_with.go similarity index 95% rename from filtering/does_not_start_with.go rename to v2/filtering/does_not_start_with.go index c570e181..7e4c49a3 100644 --- a/filtering/does_not_start_with.go +++ b/v2/filtering/does_not_start_with.go @@ -3,7 +3,7 @@ package filtering import ( "strings" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/ends_with.go b/v2/filtering/ends_with.go similarity index 94% rename from filtering/ends_with.go rename to v2/filtering/ends_with.go index b1af8dd2..99fbccf2 100644 --- a/filtering/ends_with.go +++ b/v2/filtering/ends_with.go @@ -3,7 +3,7 @@ package filtering import ( "strings" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/equals.go b/v2/filtering/equals.go similarity index 98% rename from filtering/equals.go rename to v2/filtering/equals.go index 62d66d76..03740792 100644 --- a/filtering/equals.go +++ b/v2/filtering/equals.go @@ -3,7 +3,7 @@ package filtering import ( "strconv" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/greater_than.go b/v2/filtering/greater_than.go similarity index 97% rename from filtering/greater_than.go rename to v2/filtering/greater_than.go index e98f724c..8bf05ce0 100644 --- a/filtering/greater_than.go +++ b/v2/filtering/greater_than.go @@ -3,7 +3,7 @@ package filtering import ( "strconv" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/greater_than_or_equal_to.go b/v2/filtering/greater_than_or_equal_to.go similarity index 97% rename from filtering/greater_than_or_equal_to.go rename to v2/filtering/greater_than_or_equal_to.go index c6b59542..f9be5577 100644 --- a/filtering/greater_than_or_equal_to.go +++ b/v2/filtering/greater_than_or_equal_to.go @@ -3,7 +3,7 @@ package filtering import ( "strconv" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/group.go b/v2/filtering/group.go similarity index 96% rename from filtering/group.go rename to v2/filtering/group.go index d70f31ab..d9c83f56 100644 --- a/filtering/group.go +++ b/v2/filtering/group.go @@ -1,7 +1,7 @@ package filtering import ( - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/group_test.go b/v2/filtering/group_test.go similarity index 100% rename from filtering/group_test.go rename to v2/filtering/group_test.go diff --git a/filtering/interfaces.go b/v2/filtering/interfaces.go similarity index 100% rename from filtering/interfaces.go rename to v2/filtering/interfaces.go diff --git a/filtering/is_nil.go b/v2/filtering/is_nil.go similarity index 93% rename from filtering/is_nil.go rename to v2/filtering/is_nil.go index 442f38be..a87b677e 100644 --- a/filtering/is_nil.go +++ b/v2/filtering/is_nil.go @@ -1,7 +1,7 @@ package filtering import ( - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/is_not_nil.go b/v2/filtering/is_not_nil.go similarity index 93% rename from filtering/is_not_nil.go rename to v2/filtering/is_not_nil.go index 45a86d05..72096b1d 100644 --- a/filtering/is_not_nil.go +++ b/v2/filtering/is_not_nil.go @@ -1,7 +1,7 @@ package filtering import ( - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/less_than.go b/v2/filtering/less_than.go similarity index 97% rename from filtering/less_than.go rename to v2/filtering/less_than.go index 6243d5f4..7428bfd1 100644 --- a/filtering/less_than.go +++ b/v2/filtering/less_than.go @@ -3,7 +3,7 @@ package filtering import ( "strconv" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/less_than_or_equal_to.go b/v2/filtering/less_than_or_equal_to.go similarity index 97% rename from filtering/less_than_or_equal_to.go rename to v2/filtering/less_than_or_equal_to.go index 7386178e..88f820c6 100644 --- a/filtering/less_than_or_equal_to.go +++ b/v2/filtering/less_than_or_equal_to.go @@ -3,7 +3,7 @@ package filtering import ( "strconv" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/matches_regex.go b/v2/filtering/matches_regex.go similarity index 95% rename from filtering/matches_regex.go rename to v2/filtering/matches_regex.go index 98db2a27..72e27500 100644 --- a/filtering/matches_regex.go +++ b/v2/filtering/matches_regex.go @@ -3,7 +3,7 @@ package filtering import ( "regexp" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/not_equal_to.go b/v2/filtering/not_equal_to.go similarity index 98% rename from filtering/not_equal_to.go rename to v2/filtering/not_equal_to.go index 2239c890..dc8a0f5d 100644 --- a/filtering/not_equal_to.go +++ b/v2/filtering/not_equal_to.go @@ -3,7 +3,7 @@ package filtering import ( "strconv" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/operators.go b/v2/filtering/operators.go similarity index 100% rename from filtering/operators.go rename to v2/filtering/operators.go diff --git a/filtering/parse.go b/v2/filtering/parse.go similarity index 99% rename from filtering/parse.go rename to v2/filtering/parse.go index 514ccbca..e156f743 100644 --- a/filtering/parse.go +++ b/v2/filtering/parse.go @@ -5,7 +5,7 @@ import ( "io" "strings" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) func Parse(s string, quote string) (*Group, error) { diff --git a/filtering/parse_test.go b/v2/filtering/parse_test.go similarity index 100% rename from filtering/parse_test.go rename to v2/filtering/parse_test.go diff --git a/filtering/starts_with.go b/v2/filtering/starts_with.go similarity index 94% rename from filtering/starts_with.go rename to v2/filtering/starts_with.go index 80b217b4..35449a52 100644 --- a/filtering/starts_with.go +++ b/v2/filtering/starts_with.go @@ -3,7 +3,7 @@ package filtering import ( "strings" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) var ( diff --git a/filtering/testutils_test.go b/v2/filtering/testutils_test.go similarity index 100% rename from filtering/testutils_test.go rename to v2/filtering/testutils_test.go diff --git a/generic/xml.go b/v2/generic/xml.go similarity index 100% rename from generic/xml.go rename to v2/generic/xml.go diff --git a/generic/xml_test.go b/v2/generic/xml_test.go similarity index 100% rename from generic/xml_test.go rename to v2/generic/xml_test.go diff --git a/go.mod b/v2/go.mod similarity index 92% rename from go.mod rename to v2/go.mod index 8d42ce0b..c410a1d2 100644 --- a/go.mod +++ b/v2/go.mod @@ -1,4 +1,4 @@ -module github.com/PaloAltoNetworks/pango +module github.com/PaloAltoNetworks/pango/v2 go 1.22.5 diff --git a/go.sum b/v2/go.sum similarity index 100% rename from go.sum rename to v2/go.sum diff --git a/locking/locking.go b/v2/locking/locking.go similarity index 100% rename from locking/locking.go rename to v2/locking/locking.go diff --git a/logging.go b/v2/logging.go similarity index 100% rename from logging.go rename to v2/logging.go diff --git a/logging_test.go b/v2/logging_test.go similarity index 100% rename from logging_test.go rename to v2/logging_test.go diff --git a/movement/movement.go b/v2/movement/movement.go similarity index 100% rename from movement/movement.go rename to v2/movement/movement.go diff --git a/movement/movement_suite_test.go b/v2/movement/movement_suite_test.go similarity index 100% rename from movement/movement_suite_test.go rename to v2/movement/movement_suite_test.go diff --git a/movement/movement_test.go b/v2/movement/movement_test.go similarity index 99% rename from movement/movement_test.go rename to v2/movement/movement_test.go index c5e7a5a3..d1e3fdbb 100644 --- a/movement/movement_test.go +++ b/v2/movement/movement_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - "github.com/PaloAltoNetworks/pango/movement" + "github.com/PaloAltoNetworks/pango/v2/movement" ) var _ = fmt.Printf diff --git a/network/interface/aggregate/entry.go b/v2/network/interface/aggregate/entry.go similarity index 99% rename from network/interface/aggregate/entry.go rename to v2/network/interface/aggregate/entry.go index d76d7baf..cf024512 100644 --- a/network/interface/aggregate/entry.go +++ b/v2/network/interface/aggregate/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/interface/aggregate/interfaces.go b/v2/network/interface/aggregate/interfaces.go similarity index 100% rename from network/interface/aggregate/interfaces.go rename to v2/network/interface/aggregate/interfaces.go diff --git a/network/interface/aggregate/location.go b/v2/network/interface/aggregate/location.go similarity index 97% rename from network/interface/aggregate/location.go rename to v2/network/interface/aggregate/location.go index ee39de8a..2e391731 100644 --- a/network/interface/aggregate/location.go +++ b/v2/network/interface/aggregate/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/interface/aggregate/service.go b/v2/network/interface/aggregate/service.go similarity index 97% rename from network/interface/aggregate/service.go rename to v2/network/interface/aggregate/service.go index d0f8be38..e3a09c7d 100644 --- a/network/interface/aggregate/service.go +++ b/v2/network/interface/aggregate/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/interface/aggregate/subinterface/layer3/entry.go b/v2/network/interface/aggregate/subinterface/layer3/entry.go similarity index 99% rename from network/interface/aggregate/subinterface/layer3/entry.go rename to v2/network/interface/aggregate/subinterface/layer3/entry.go index cea6a71a..d688a578 100644 --- a/network/interface/aggregate/subinterface/layer3/entry.go +++ b/v2/network/interface/aggregate/subinterface/layer3/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/interface/aggregate/subinterface/layer3/interfaces.go b/v2/network/interface/aggregate/subinterface/layer3/interfaces.go similarity index 100% rename from network/interface/aggregate/subinterface/layer3/interfaces.go rename to v2/network/interface/aggregate/subinterface/layer3/interfaces.go diff --git a/network/interface/aggregate/subinterface/layer3/location.go b/v2/network/interface/aggregate/subinterface/layer3/location.go similarity index 97% rename from network/interface/aggregate/subinterface/layer3/location.go rename to v2/network/interface/aggregate/subinterface/layer3/location.go index d13a2571..ddf11dbe 100644 --- a/network/interface/aggregate/subinterface/layer3/location.go +++ b/v2/network/interface/aggregate/subinterface/layer3/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/interface/aggregate/subinterface/layer3/service.go b/v2/network/interface/aggregate/subinterface/layer3/service.go similarity index 97% rename from network/interface/aggregate/subinterface/layer3/service.go rename to v2/network/interface/aggregate/subinterface/layer3/service.go index 60cde644..a681fe78 100644 --- a/network/interface/aggregate/subinterface/layer3/service.go +++ b/v2/network/interface/aggregate/subinterface/layer3/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/interface/ethernet/entry.go b/v2/network/interface/ethernet/entry.go similarity index 99% rename from network/interface/ethernet/entry.go rename to v2/network/interface/ethernet/entry.go index e29c1c24..e5f0ceb3 100644 --- a/network/interface/ethernet/entry.go +++ b/v2/network/interface/ethernet/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/interface/ethernet/interfaces.go b/v2/network/interface/ethernet/interfaces.go similarity index 100% rename from network/interface/ethernet/interfaces.go rename to v2/network/interface/ethernet/interfaces.go diff --git a/network/interface/ethernet/location.go b/v2/network/interface/ethernet/location.go similarity index 99% rename from network/interface/ethernet/location.go rename to v2/network/interface/ethernet/location.go index e873bcda..be96abf4 100644 --- a/network/interface/ethernet/location.go +++ b/v2/network/interface/ethernet/location.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -459,7 +459,7 @@ type NgfwLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewTemplateLocation() *Location { return &Location{Template: &TemplateLocation{ diff --git a/network/interface/ethernet/service.go b/v2/network/interface/ethernet/service.go similarity index 97% rename from network/interface/ethernet/service.go rename to v2/network/interface/ethernet/service.go index 8888b5b1..87e544ea 100644 --- a/network/interface/ethernet/service.go +++ b/v2/network/interface/ethernet/service.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/locking" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/locking" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/interface/ethernet/subinterface/layer3/entry.go b/v2/network/interface/ethernet/subinterface/layer3/entry.go similarity index 99% rename from network/interface/ethernet/subinterface/layer3/entry.go rename to v2/network/interface/ethernet/subinterface/layer3/entry.go index e03dcc7e..c177443b 100644 --- a/network/interface/ethernet/subinterface/layer3/entry.go +++ b/v2/network/interface/ethernet/subinterface/layer3/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/interface/ethernet/subinterface/layer3/interfaces.go b/v2/network/interface/ethernet/subinterface/layer3/interfaces.go similarity index 100% rename from network/interface/ethernet/subinterface/layer3/interfaces.go rename to v2/network/interface/ethernet/subinterface/layer3/interfaces.go diff --git a/network/interface/ethernet/subinterface/layer3/location.go b/v2/network/interface/ethernet/subinterface/layer3/location.go similarity index 98% rename from network/interface/ethernet/subinterface/layer3/location.go rename to v2/network/interface/ethernet/subinterface/layer3/location.go index 6f0f4a8a..ca3a9907 100644 --- a/network/interface/ethernet/subinterface/layer3/location.go +++ b/v2/network/interface/ethernet/subinterface/layer3/location.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -164,7 +164,7 @@ type NgfwLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewTemplateLocation() *Location { return &Location{Template: &TemplateLocation{ diff --git a/network/interface/ethernet/subinterface/layer3/service.go b/v2/network/interface/ethernet/subinterface/layer3/service.go similarity index 97% rename from network/interface/ethernet/subinterface/layer3/service.go rename to v2/network/interface/ethernet/subinterface/layer3/service.go index 4ba2919c..98b5dde6 100644 --- a/network/interface/ethernet/subinterface/layer3/service.go +++ b/v2/network/interface/ethernet/subinterface/layer3/service.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/locking" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/locking" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/interface/loopback/entry.go b/v2/network/interface/loopback/entry.go similarity index 98% rename from network/interface/loopback/entry.go rename to v2/network/interface/loopback/entry.go index d541ac51..8cb6d729 100644 --- a/network/interface/loopback/entry.go +++ b/v2/network/interface/loopback/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/interface/loopback/interfaces.go b/v2/network/interface/loopback/interfaces.go similarity index 100% rename from network/interface/loopback/interfaces.go rename to v2/network/interface/loopback/interfaces.go diff --git a/network/interface/loopback/location.go b/v2/network/interface/loopback/location.go similarity index 97% rename from network/interface/loopback/location.go rename to v2/network/interface/loopback/location.go index 158a353e..cd686c16 100644 --- a/network/interface/loopback/location.go +++ b/v2/network/interface/loopback/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/interface/loopback/service.go b/v2/network/interface/loopback/service.go similarity index 97% rename from network/interface/loopback/service.go rename to v2/network/interface/loopback/service.go index 336ec173..e2d71b7b 100644 --- a/network/interface/loopback/service.go +++ b/v2/network/interface/loopback/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/interface/tunnel/entry.go b/v2/network/interface/tunnel/entry.go similarity index 98% rename from network/interface/tunnel/entry.go rename to v2/network/interface/tunnel/entry.go index ae720604..610eaa22 100644 --- a/network/interface/tunnel/entry.go +++ b/v2/network/interface/tunnel/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/interface/tunnel/interfaces.go b/v2/network/interface/tunnel/interfaces.go similarity index 100% rename from network/interface/tunnel/interfaces.go rename to v2/network/interface/tunnel/interfaces.go diff --git a/network/interface/tunnel/location.go b/v2/network/interface/tunnel/location.go similarity index 98% rename from network/interface/tunnel/location.go rename to v2/network/interface/tunnel/location.go index fa3c5762..0983f628 100644 --- a/network/interface/tunnel/location.go +++ b/v2/network/interface/tunnel/location.go @@ -5,9 +5,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -164,7 +164,7 @@ type NgfwLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewTemplateLocation() *Location { return &Location{Template: &TemplateLocation{ diff --git a/network/interface/tunnel/service.go b/v2/network/interface/tunnel/service.go similarity index 97% rename from network/interface/tunnel/service.go rename to v2/network/interface/tunnel/service.go index 01678b0f..92995235 100644 --- a/network/interface/tunnel/service.go +++ b/v2/network/interface/tunnel/service.go @@ -4,11 +4,11 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/locking" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/locking" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/interface/vlan/entry.go b/v2/network/interface/vlan/entry.go similarity index 99% rename from network/interface/vlan/entry.go rename to v2/network/interface/vlan/entry.go index bcca7d1b..1d49e05a 100644 --- a/network/interface/vlan/entry.go +++ b/v2/network/interface/vlan/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/interface/vlan/interfaces.go b/v2/network/interface/vlan/interfaces.go similarity index 100% rename from network/interface/vlan/interfaces.go rename to v2/network/interface/vlan/interfaces.go diff --git a/network/interface/vlan/location.go b/v2/network/interface/vlan/location.go similarity index 97% rename from network/interface/vlan/location.go rename to v2/network/interface/vlan/location.go index 6df2801e..732428e6 100644 --- a/network/interface/vlan/location.go +++ b/v2/network/interface/vlan/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -40,7 +40,7 @@ type NgfwLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewTemplateLocation() *Location { return &Location{Template: &TemplateLocation{ diff --git a/network/interface/vlan/service.go b/v2/network/interface/vlan/service.go similarity index 97% rename from network/interface/vlan/service.go rename to v2/network/interface/vlan/service.go index b6c255b3..e4eee62b 100644 --- a/network/interface/vlan/service.go +++ b/v2/network/interface/vlan/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/logical_router/entry.go b/v2/network/logical_router/entry.go similarity index 99% rename from network/logical_router/entry.go rename to v2/network/logical_router/entry.go index 3bde972b..0c1074e4 100644 --- a/network/logical_router/entry.go +++ b/v2/network/logical_router/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/logical_router/interfaces.go b/v2/network/logical_router/interfaces.go similarity index 100% rename from network/logical_router/interfaces.go rename to v2/network/logical_router/interfaces.go diff --git a/network/logical_router/location.go b/v2/network/logical_router/location.go similarity index 97% rename from network/logical_router/location.go rename to v2/network/logical_router/location.go index ba316639..8c885fea 100644 --- a/network/logical_router/location.go +++ b/v2/network/logical_router/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/logical_router/service.go b/v2/network/logical_router/service.go similarity index 97% rename from network/logical_router/service.go rename to v2/network/logical_router/service.go index da15ccee..f9046370 100644 --- a/network/logical_router/service.go +++ b/v2/network/logical_router/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/profiles/interface_management/entry.go b/v2/network/profiles/interface_management/entry.go similarity index 97% rename from network/profiles/interface_management/entry.go rename to v2/network/profiles/interface_management/entry.go index 2bc75dbb..d9d19672 100644 --- a/network/profiles/interface_management/entry.go +++ b/v2/network/profiles/interface_management/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/profiles/interface_management/interfaces.go b/v2/network/profiles/interface_management/interfaces.go similarity index 100% rename from network/profiles/interface_management/interfaces.go rename to v2/network/profiles/interface_management/interfaces.go diff --git a/network/profiles/interface_management/location.go b/v2/network/profiles/interface_management/location.go similarity index 97% rename from network/profiles/interface_management/location.go rename to v2/network/profiles/interface_management/location.go index f678ff19..124b8ec5 100644 --- a/network/profiles/interface_management/location.go +++ b/v2/network/profiles/interface_management/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/profiles/interface_management/service.go b/v2/network/profiles/interface_management/service.go similarity index 97% rename from network/profiles/interface_management/service.go rename to v2/network/profiles/interface_management/service.go index e7b67baa..dab639fd 100644 --- a/network/profiles/interface_management/service.go +++ b/v2/network/profiles/interface_management/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/subinterface/ethernet/layer3/entry.go b/v2/network/subinterface/ethernet/layer3/entry.go similarity index 99% rename from network/subinterface/ethernet/layer3/entry.go rename to v2/network/subinterface/ethernet/layer3/entry.go index 49ca1ec9..450ba952 100644 --- a/network/subinterface/ethernet/layer3/entry.go +++ b/v2/network/subinterface/ethernet/layer3/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/subinterface/ethernet/layer3/interfaces.go b/v2/network/subinterface/ethernet/layer3/interfaces.go similarity index 100% rename from network/subinterface/ethernet/layer3/interfaces.go rename to v2/network/subinterface/ethernet/layer3/interfaces.go diff --git a/network/subinterface/ethernet/layer3/location.go b/v2/network/subinterface/ethernet/layer3/location.go similarity index 97% rename from network/subinterface/ethernet/layer3/location.go rename to v2/network/subinterface/ethernet/layer3/location.go index f5704fc7..dbb55dbe 100644 --- a/network/subinterface/ethernet/layer3/location.go +++ b/v2/network/subinterface/ethernet/layer3/location.go @@ -3,9 +3,9 @@ package layer3 import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/subinterface/ethernet/layer3/service.go b/v2/network/subinterface/ethernet/layer3/service.go similarity index 97% rename from network/subinterface/ethernet/layer3/service.go rename to v2/network/subinterface/ethernet/layer3/service.go index d4136966..5db9a6e4 100644 --- a/network/subinterface/ethernet/layer3/service.go +++ b/v2/network/subinterface/ethernet/layer3/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/tunnel/ipsec/entry.go b/v2/network/tunnel/ipsec/entry.go similarity index 99% rename from network/tunnel/ipsec/entry.go rename to v2/network/tunnel/ipsec/entry.go index 76b23f14..e0a64577 100644 --- a/network/tunnel/ipsec/entry.go +++ b/v2/network/tunnel/ipsec/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/tunnel/ipsec/interfaces.go b/v2/network/tunnel/ipsec/interfaces.go similarity index 100% rename from network/tunnel/ipsec/interfaces.go rename to v2/network/tunnel/ipsec/interfaces.go diff --git a/network/tunnel/ipsec/location.go b/v2/network/tunnel/ipsec/location.go similarity index 96% rename from network/tunnel/ipsec/location.go rename to v2/network/tunnel/ipsec/location.go index 9a322907..4b232ba4 100644 --- a/network/tunnel/ipsec/location.go +++ b/v2/network/tunnel/ipsec/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/tunnel/ipsec/service.go b/v2/network/tunnel/ipsec/service.go similarity index 97% rename from network/tunnel/ipsec/service.go rename to v2/network/tunnel/ipsec/service.go index 108f068b..9d5ade3f 100644 --- a/network/tunnel/ipsec/service.go +++ b/v2/network/tunnel/ipsec/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/virtual_router/entry.go b/v2/network/virtual_router/entry.go similarity index 99% rename from network/virtual_router/entry.go rename to v2/network/virtual_router/entry.go index 740d5d90..65c00eeb 100644 --- a/network/virtual_router/entry.go +++ b/v2/network/virtual_router/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/virtual_router/interfaces.go b/v2/network/virtual_router/interfaces.go similarity index 100% rename from network/virtual_router/interfaces.go rename to v2/network/virtual_router/interfaces.go diff --git a/network/virtual_router/ipv4/staticroute/entry.go b/v2/network/virtual_router/ipv4/staticroute/entry.go similarity index 98% rename from network/virtual_router/ipv4/staticroute/entry.go rename to v2/network/virtual_router/ipv4/staticroute/entry.go index 4fe78cfe..7696ab05 100644 --- a/network/virtual_router/ipv4/staticroute/entry.go +++ b/v2/network/virtual_router/ipv4/staticroute/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/virtual_router/ipv4/staticroute/interfaces.go b/v2/network/virtual_router/ipv4/staticroute/interfaces.go similarity index 100% rename from network/virtual_router/ipv4/staticroute/interfaces.go rename to v2/network/virtual_router/ipv4/staticroute/interfaces.go diff --git a/network/virtual_router/ipv4/staticroute/location.go b/v2/network/virtual_router/ipv4/staticroute/location.go similarity index 97% rename from network/virtual_router/ipv4/staticroute/location.go rename to v2/network/virtual_router/ipv4/staticroute/location.go index c26113f7..d58085a9 100644 --- a/network/virtual_router/ipv4/staticroute/location.go +++ b/v2/network/virtual_router/ipv4/staticroute/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/virtual_router/ipv4/staticroute/service.go b/v2/network/virtual_router/ipv4/staticroute/service.go similarity index 97% rename from network/virtual_router/ipv4/staticroute/service.go rename to v2/network/virtual_router/ipv4/staticroute/service.go index 55955127..7543305a 100644 --- a/network/virtual_router/ipv4/staticroute/service.go +++ b/v2/network/virtual_router/ipv4/staticroute/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/virtual_router/ipv6/staticroute/entry.go b/v2/network/virtual_router/ipv6/staticroute/entry.go similarity index 98% rename from network/virtual_router/ipv6/staticroute/entry.go rename to v2/network/virtual_router/ipv6/staticroute/entry.go index 9cd84fe1..83cc38d7 100644 --- a/network/virtual_router/ipv6/staticroute/entry.go +++ b/v2/network/virtual_router/ipv6/staticroute/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/virtual_router/ipv6/staticroute/interfaces.go b/v2/network/virtual_router/ipv6/staticroute/interfaces.go similarity index 100% rename from network/virtual_router/ipv6/staticroute/interfaces.go rename to v2/network/virtual_router/ipv6/staticroute/interfaces.go diff --git a/network/virtual_router/ipv6/staticroute/location.go b/v2/network/virtual_router/ipv6/staticroute/location.go similarity index 97% rename from network/virtual_router/ipv6/staticroute/location.go rename to v2/network/virtual_router/ipv6/staticroute/location.go index d3c8910e..e433c011 100644 --- a/network/virtual_router/ipv6/staticroute/location.go +++ b/v2/network/virtual_router/ipv6/staticroute/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/virtual_router/ipv6/staticroute/service.go b/v2/network/virtual_router/ipv6/staticroute/service.go similarity index 97% rename from network/virtual_router/ipv6/staticroute/service.go rename to v2/network/virtual_router/ipv6/staticroute/service.go index 55955127..7543305a 100644 --- a/network/virtual_router/ipv6/staticroute/service.go +++ b/v2/network/virtual_router/ipv6/staticroute/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/virtual_router/location.go b/v2/network/virtual_router/location.go similarity index 97% rename from network/virtual_router/location.go rename to v2/network/virtual_router/location.go index eaa37c11..ff0f47b8 100644 --- a/network/virtual_router/location.go +++ b/v2/network/virtual_router/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/virtual_router/service.go b/v2/network/virtual_router/service.go similarity index 97% rename from network/virtual_router/service.go rename to v2/network/virtual_router/service.go index eb0da661..2f77ef90 100644 --- a/network/virtual_router/service.go +++ b/v2/network/virtual_router/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/network/zone/entry.go b/v2/network/zone/entry.go similarity index 99% rename from network/zone/entry.go rename to v2/network/zone/entry.go index e3499f2f..5a44b18f 100644 --- a/network/zone/entry.go +++ b/v2/network/zone/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/network/zone/interfaces.go b/v2/network/zone/interfaces.go similarity index 100% rename from network/zone/interfaces.go rename to v2/network/zone/interfaces.go diff --git a/network/zone/location.go b/v2/network/zone/location.go similarity index 97% rename from network/zone/location.go rename to v2/network/zone/location.go index ec844200..e71d457b 100644 --- a/network/zone/location.go +++ b/v2/network/zone/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/network/zone/service.go b/v2/network/zone/service.go similarity index 97% rename from network/zone/service.go rename to v2/network/zone/service.go index ec836cf2..7538510e 100644 --- a/network/zone/service.go +++ b/v2/network/zone/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/address/entry.go b/v2/objects/address/entry.go similarity index 95% rename from objects/address/entry.go rename to v2/objects/address/entry.go index 55321e63..d55b49c3 100644 --- a/objects/address/entry.go +++ b/v2/objects/address/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/address/group/entry.go b/v2/objects/address/group/entry.go similarity index 95% rename from objects/address/group/entry.go rename to v2/objects/address/group/entry.go index f393ca81..accd3050 100644 --- a/objects/address/group/entry.go +++ b/v2/objects/address/group/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/address/group/interfaces.go b/v2/objects/address/group/interfaces.go similarity index 100% rename from objects/address/group/interfaces.go rename to v2/objects/address/group/interfaces.go diff --git a/objects/address/group/location.go b/v2/objects/address/group/location.go similarity index 96% rename from objects/address/group/location.go rename to v2/objects/address/group/location.go index 299ee989..8ca73ee4 100644 --- a/objects/address/group/location.go +++ b/v2/objects/address/group/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/address/group/service.go b/v2/objects/address/group/service.go similarity index 97% rename from objects/address/group/service.go rename to v2/objects/address/group/service.go index 06e6de00..1fac378f 100644 --- a/objects/address/group/service.go +++ b/v2/objects/address/group/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/address/interfaces.go b/v2/objects/address/interfaces.go similarity index 100% rename from objects/address/interfaces.go rename to v2/objects/address/interfaces.go diff --git a/objects/address/location.go b/v2/objects/address/location.go similarity index 96% rename from objects/address/location.go rename to v2/objects/address/location.go index 9c726346..e5e5a281 100644 --- a/objects/address/location.go +++ b/v2/objects/address/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/address/service.go b/v2/objects/address/service.go similarity index 97% rename from objects/address/service.go rename to v2/objects/address/service.go index 9070c80c..cb917d3f 100644 --- a/objects/address/service.go +++ b/v2/objects/address/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/admintag/entry.go b/v2/objects/admintag/entry.go similarity index 95% rename from objects/admintag/entry.go rename to v2/objects/admintag/entry.go index 0cf2b71c..9d612cf4 100644 --- a/objects/admintag/entry.go +++ b/v2/objects/admintag/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/admintag/interfaces.go b/v2/objects/admintag/interfaces.go similarity index 100% rename from objects/admintag/interfaces.go rename to v2/objects/admintag/interfaces.go diff --git a/objects/admintag/location.go b/v2/objects/admintag/location.go similarity index 96% rename from objects/admintag/location.go rename to v2/objects/admintag/location.go index ba2c6fa2..2ad666cc 100644 --- a/objects/admintag/location.go +++ b/v2/objects/admintag/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/admintag/service.go b/v2/objects/admintag/service.go similarity index 97% rename from objects/admintag/service.go rename to v2/objects/admintag/service.go index e64e173d..9b769638 100644 --- a/objects/admintag/service.go +++ b/v2/objects/admintag/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/application/entry.go b/v2/objects/application/entry.go similarity index 99% rename from objects/application/entry.go rename to v2/objects/application/entry.go index a1ecebe2..19796851 100644 --- a/objects/application/entry.go +++ b/v2/objects/application/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/application/group/entry.go b/v2/objects/application/group/entry.go similarity index 93% rename from objects/application/group/entry.go rename to v2/objects/application/group/entry.go index 0a8d0079..e02c670f 100644 --- a/objects/application/group/entry.go +++ b/v2/objects/application/group/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/application/group/interfaces.go b/v2/objects/application/group/interfaces.go similarity index 100% rename from objects/application/group/interfaces.go rename to v2/objects/application/group/interfaces.go diff --git a/objects/application/group/location.go b/v2/objects/application/group/location.go similarity index 96% rename from objects/application/group/location.go rename to v2/objects/application/group/location.go index a9c7a2c8..9313a058 100644 --- a/objects/application/group/location.go +++ b/v2/objects/application/group/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/application/group/service.go b/v2/objects/application/group/service.go similarity index 97% rename from objects/application/group/service.go rename to v2/objects/application/group/service.go index 06e6de00..1fac378f 100644 --- a/objects/application/group/service.go +++ b/v2/objects/application/group/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/application/interfaces.go b/v2/objects/application/interfaces.go similarity index 100% rename from objects/application/interfaces.go rename to v2/objects/application/interfaces.go diff --git a/objects/application/location.go b/v2/objects/application/location.go similarity index 96% rename from objects/application/location.go rename to v2/objects/application/location.go index 6632ca61..5bfc75fb 100644 --- a/objects/application/location.go +++ b/v2/objects/application/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/application/service.go b/v2/objects/application/service.go similarity index 97% rename from objects/application/service.go rename to v2/objects/application/service.go index be36c863..3df2c9aa 100644 --- a/objects/application/service.go +++ b/v2/objects/application/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/extdynlist/entry.go b/v2/objects/extdynlist/entry.go similarity index 99% rename from objects/extdynlist/entry.go rename to v2/objects/extdynlist/entry.go index 4d411056..b1719ae4 100644 --- a/objects/extdynlist/entry.go +++ b/v2/objects/extdynlist/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/extdynlist/interfaces.go b/v2/objects/extdynlist/interfaces.go similarity index 100% rename from objects/extdynlist/interfaces.go rename to v2/objects/extdynlist/interfaces.go diff --git a/objects/extdynlist/location.go b/v2/objects/extdynlist/location.go similarity index 96% rename from objects/extdynlist/location.go rename to v2/objects/extdynlist/location.go index 986c6d65..873bc0e2 100644 --- a/objects/extdynlist/location.go +++ b/v2/objects/extdynlist/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/extdynlist/service.go b/v2/objects/extdynlist/service.go similarity index 97% rename from objects/extdynlist/service.go rename to v2/objects/extdynlist/service.go index 825504bd..c0c9208c 100644 --- a/objects/extdynlist/service.go +++ b/v2/objects/extdynlist/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/antivirus/entry.go b/v2/objects/profiles/antivirus/entry.go similarity index 99% rename from objects/profiles/antivirus/entry.go rename to v2/objects/profiles/antivirus/entry.go index 9a7aab2b..ce087c3d 100644 --- a/objects/profiles/antivirus/entry.go +++ b/v2/objects/profiles/antivirus/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/antivirus/interfaces.go b/v2/objects/profiles/antivirus/interfaces.go similarity index 100% rename from objects/profiles/antivirus/interfaces.go rename to v2/objects/profiles/antivirus/interfaces.go diff --git a/objects/profiles/antivirus/location.go b/v2/objects/profiles/antivirus/location.go similarity index 96% rename from objects/profiles/antivirus/location.go rename to v2/objects/profiles/antivirus/location.go index 92bb6569..dee314bf 100644 --- a/objects/profiles/antivirus/location.go +++ b/v2/objects/profiles/antivirus/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type VsysLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewDeviceGroupLocation() *Location { return &Location{DeviceGroup: &DeviceGroupLocation{ diff --git a/objects/profiles/antivirus/service.go b/v2/objects/profiles/antivirus/service.go similarity index 97% rename from objects/profiles/antivirus/service.go rename to v2/objects/profiles/antivirus/service.go index 75810107..163e5d06 100644 --- a/objects/profiles/antivirus/service.go +++ b/v2/objects/profiles/antivirus/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/customurlcategory/entry.go b/v2/objects/profiles/customurlcategory/entry.go similarity index 94% rename from objects/profiles/customurlcategory/entry.go rename to v2/objects/profiles/customurlcategory/entry.go index 48266276..0a19ccae 100644 --- a/objects/profiles/customurlcategory/entry.go +++ b/v2/objects/profiles/customurlcategory/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/customurlcategory/interfaces.go b/v2/objects/profiles/customurlcategory/interfaces.go similarity index 100% rename from objects/profiles/customurlcategory/interfaces.go rename to v2/objects/profiles/customurlcategory/interfaces.go diff --git a/objects/profiles/customurlcategory/location.go b/v2/objects/profiles/customurlcategory/location.go similarity index 96% rename from objects/profiles/customurlcategory/location.go rename to v2/objects/profiles/customurlcategory/location.go index d2d274ae..fdff1503 100644 --- a/objects/profiles/customurlcategory/location.go +++ b/v2/objects/profiles/customurlcategory/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/profiles/customurlcategory/service.go b/v2/objects/profiles/customurlcategory/service.go similarity index 97% rename from objects/profiles/customurlcategory/service.go rename to v2/objects/profiles/customurlcategory/service.go index 63cc0722..e4bda017 100644 --- a/objects/profiles/customurlcategory/service.go +++ b/v2/objects/profiles/customurlcategory/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/entry.go b/v2/objects/profiles/entry.go similarity index 93% rename from objects/profiles/entry.go rename to v2/objects/profiles/entry.go index fff04b5c..aa755c6d 100644 --- a/objects/profiles/entry.go +++ b/v2/objects/profiles/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/fileblocking/entry.go b/v2/objects/profiles/fileblocking/entry.go similarity index 96% rename from objects/profiles/fileblocking/entry.go rename to v2/objects/profiles/fileblocking/entry.go index 9652b823..a56a3aea 100644 --- a/objects/profiles/fileblocking/entry.go +++ b/v2/objects/profiles/fileblocking/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/fileblocking/interfaces.go b/v2/objects/profiles/fileblocking/interfaces.go similarity index 100% rename from objects/profiles/fileblocking/interfaces.go rename to v2/objects/profiles/fileblocking/interfaces.go diff --git a/objects/profiles/fileblocking/location.go b/v2/objects/profiles/fileblocking/location.go similarity index 96% rename from objects/profiles/fileblocking/location.go rename to v2/objects/profiles/fileblocking/location.go index 61b9364d..7951047e 100644 --- a/objects/profiles/fileblocking/location.go +++ b/v2/objects/profiles/fileblocking/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type VsysLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewDeviceGroupLocation() *Location { return &Location{DeviceGroup: &DeviceGroupLocation{ diff --git a/objects/profiles/fileblocking/service.go b/v2/objects/profiles/fileblocking/service.go similarity index 97% rename from objects/profiles/fileblocking/service.go rename to v2/objects/profiles/fileblocking/service.go index de92d403..28070daf 100644 --- a/objects/profiles/fileblocking/service.go +++ b/v2/objects/profiles/fileblocking/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/ikecrypto/entry.go b/v2/objects/profiles/ikecrypto/entry.go similarity index 96% rename from objects/profiles/ikecrypto/entry.go rename to v2/objects/profiles/ikecrypto/entry.go index 00e253ab..8a725ad6 100644 --- a/objects/profiles/ikecrypto/entry.go +++ b/v2/objects/profiles/ikecrypto/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/ikecrypto/interfaces.go b/v2/objects/profiles/ikecrypto/interfaces.go similarity index 100% rename from objects/profiles/ikecrypto/interfaces.go rename to v2/objects/profiles/ikecrypto/interfaces.go diff --git a/objects/profiles/ikecrypto/location.go b/v2/objects/profiles/ikecrypto/location.go similarity index 97% rename from objects/profiles/ikecrypto/location.go rename to v2/objects/profiles/ikecrypto/location.go index f6b14d81..129d2126 100644 --- a/objects/profiles/ikecrypto/location.go +++ b/v2/objects/profiles/ikecrypto/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/objects/profiles/ikecrypto/service.go b/v2/objects/profiles/ikecrypto/service.go similarity index 97% rename from objects/profiles/ikecrypto/service.go rename to v2/objects/profiles/ikecrypto/service.go index d10839b1..dc5df3ed 100644 --- a/objects/profiles/ikecrypto/service.go +++ b/v2/objects/profiles/ikecrypto/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/interfaces.go b/v2/objects/profiles/interfaces.go similarity index 100% rename from objects/profiles/interfaces.go rename to v2/objects/profiles/interfaces.go diff --git a/objects/profiles/ipseccrypto/entry.go b/v2/objects/profiles/ipseccrypto/entry.go similarity index 97% rename from objects/profiles/ipseccrypto/entry.go rename to v2/objects/profiles/ipseccrypto/entry.go index f4ecdb15..fd13b297 100644 --- a/objects/profiles/ipseccrypto/entry.go +++ b/v2/objects/profiles/ipseccrypto/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/ipseccrypto/interfaces.go b/v2/objects/profiles/ipseccrypto/interfaces.go similarity index 100% rename from objects/profiles/ipseccrypto/interfaces.go rename to v2/objects/profiles/ipseccrypto/interfaces.go diff --git a/objects/profiles/ipseccrypto/location.go b/v2/objects/profiles/ipseccrypto/location.go similarity index 97% rename from objects/profiles/ipseccrypto/location.go rename to v2/objects/profiles/ipseccrypto/location.go index 2418c7a2..82eaeedf 100644 --- a/objects/profiles/ipseccrypto/location.go +++ b/v2/objects/profiles/ipseccrypto/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/objects/profiles/ipseccrypto/service.go b/v2/objects/profiles/ipseccrypto/service.go similarity index 97% rename from objects/profiles/ipseccrypto/service.go rename to v2/objects/profiles/ipseccrypto/service.go index 87bc53aa..5f9e04c8 100644 --- a/objects/profiles/ipseccrypto/service.go +++ b/v2/objects/profiles/ipseccrypto/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/location.go b/v2/objects/profiles/location.go similarity index 96% rename from objects/profiles/location.go rename to v2/objects/profiles/location.go index 0942a233..56afde90 100644 --- a/objects/profiles/location.go +++ b/v2/objects/profiles/location.go @@ -3,9 +3,9 @@ package profiles import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/objects/profiles/logforwarding/entry.go b/v2/objects/profiles/logforwarding/entry.go similarity index 99% rename from objects/profiles/logforwarding/entry.go rename to v2/objects/profiles/logforwarding/entry.go index 92f14843..1f24fc4d 100644 --- a/objects/profiles/logforwarding/entry.go +++ b/v2/objects/profiles/logforwarding/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/logforwarding/interfaces.go b/v2/objects/profiles/logforwarding/interfaces.go similarity index 100% rename from objects/profiles/logforwarding/interfaces.go rename to v2/objects/profiles/logforwarding/interfaces.go diff --git a/objects/profiles/logforwarding/location.go b/v2/objects/profiles/logforwarding/location.go similarity index 95% rename from objects/profiles/logforwarding/location.go rename to v2/objects/profiles/logforwarding/location.go index 1e5d4dbf..477526bc 100644 --- a/objects/profiles/logforwarding/location.go +++ b/v2/objects/profiles/logforwarding/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -29,7 +29,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewDeviceGroupLocation() *Location { return &Location{DeviceGroup: &DeviceGroupLocation{ diff --git a/objects/profiles/logforwarding/service.go b/v2/objects/profiles/logforwarding/service.go similarity index 97% rename from objects/profiles/logforwarding/service.go rename to v2/objects/profiles/logforwarding/service.go index 6ea0b0e3..57ac640f 100644 --- a/objects/profiles/logforwarding/service.go +++ b/v2/objects/profiles/logforwarding/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/secgroup/entry.go b/v2/objects/profiles/secgroup/entry.go similarity index 97% rename from objects/profiles/secgroup/entry.go rename to v2/objects/profiles/secgroup/entry.go index 9a1c2a22..7a3ea98c 100644 --- a/objects/profiles/secgroup/entry.go +++ b/v2/objects/profiles/secgroup/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/secgroup/interfaces.go b/v2/objects/profiles/secgroup/interfaces.go similarity index 100% rename from objects/profiles/secgroup/interfaces.go rename to v2/objects/profiles/secgroup/interfaces.go diff --git a/objects/profiles/secgroup/location.go b/v2/objects/profiles/secgroup/location.go similarity index 95% rename from objects/profiles/secgroup/location.go rename to v2/objects/profiles/secgroup/location.go index fbed0d17..4c660041 100644 --- a/objects/profiles/secgroup/location.go +++ b/v2/objects/profiles/secgroup/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -29,7 +29,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewDeviceGroupLocation() *Location { return &Location{DeviceGroup: &DeviceGroupLocation{ diff --git a/objects/profiles/secgroup/service.go b/v2/objects/profiles/secgroup/service.go similarity index 97% rename from objects/profiles/secgroup/service.go rename to v2/objects/profiles/secgroup/service.go index 47b456fc..56a8fa55 100644 --- a/objects/profiles/secgroup/service.go +++ b/v2/objects/profiles/secgroup/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/service.go b/v2/objects/profiles/service.go similarity index 97% rename from objects/profiles/service.go rename to v2/objects/profiles/service.go index 90e5581b..6bf80959 100644 --- a/objects/profiles/service.go +++ b/v2/objects/profiles/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/urlfiltering/entry.go b/v2/objects/profiles/urlfiltering/entry.go similarity index 99% rename from objects/profiles/urlfiltering/entry.go rename to v2/objects/profiles/urlfiltering/entry.go index 57ab9c3b..bbde3439 100644 --- a/objects/profiles/urlfiltering/entry.go +++ b/v2/objects/profiles/urlfiltering/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/urlfiltering/interfaces.go b/v2/objects/profiles/urlfiltering/interfaces.go similarity index 100% rename from objects/profiles/urlfiltering/interfaces.go rename to v2/objects/profiles/urlfiltering/interfaces.go diff --git a/objects/profiles/urlfiltering/location.go b/v2/objects/profiles/urlfiltering/location.go similarity index 95% rename from objects/profiles/urlfiltering/location.go rename to v2/objects/profiles/urlfiltering/location.go index 604e70e5..d60fc5f1 100644 --- a/objects/profiles/urlfiltering/location.go +++ b/v2/objects/profiles/urlfiltering/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -29,7 +29,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewDeviceGroupLocation() *Location { return &Location{DeviceGroup: &DeviceGroupLocation{ diff --git a/objects/profiles/urlfiltering/service.go b/v2/objects/profiles/urlfiltering/service.go similarity index 97% rename from objects/profiles/urlfiltering/service.go rename to v2/objects/profiles/urlfiltering/service.go index 1a5343fb..c0de8033 100644 --- a/objects/profiles/urlfiltering/service.go +++ b/v2/objects/profiles/urlfiltering/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/vulnerability/entry.go b/v2/objects/profiles/vulnerability/entry.go similarity index 99% rename from objects/profiles/vulnerability/entry.go rename to v2/objects/profiles/vulnerability/entry.go index dcaac0dc..4664f277 100644 --- a/objects/profiles/vulnerability/entry.go +++ b/v2/objects/profiles/vulnerability/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/vulnerability/interfaces.go b/v2/objects/profiles/vulnerability/interfaces.go similarity index 100% rename from objects/profiles/vulnerability/interfaces.go rename to v2/objects/profiles/vulnerability/interfaces.go diff --git a/objects/profiles/vulnerability/location.go b/v2/objects/profiles/vulnerability/location.go similarity index 95% rename from objects/profiles/vulnerability/location.go rename to v2/objects/profiles/vulnerability/location.go index a9a67f59..c25a374a 100644 --- a/objects/profiles/vulnerability/location.go +++ b/v2/objects/profiles/vulnerability/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -29,7 +29,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewDeviceGroupLocation() *Location { return &Location{DeviceGroup: &DeviceGroupLocation{ diff --git a/objects/profiles/vulnerability/service.go b/v2/objects/profiles/vulnerability/service.go similarity index 97% rename from objects/profiles/vulnerability/service.go rename to v2/objects/profiles/vulnerability/service.go index 344a8e28..4fc48d2d 100644 --- a/objects/profiles/vulnerability/service.go +++ b/v2/objects/profiles/vulnerability/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/profiles/wildfireanalysis/entry.go b/v2/objects/profiles/wildfireanalysis/entry.go similarity index 96% rename from objects/profiles/wildfireanalysis/entry.go rename to v2/objects/profiles/wildfireanalysis/entry.go index 2e759ea9..5d7635ab 100644 --- a/objects/profiles/wildfireanalysis/entry.go +++ b/v2/objects/profiles/wildfireanalysis/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/profiles/wildfireanalysis/interfaces.go b/v2/objects/profiles/wildfireanalysis/interfaces.go similarity index 100% rename from objects/profiles/wildfireanalysis/interfaces.go rename to v2/objects/profiles/wildfireanalysis/interfaces.go diff --git a/objects/profiles/wildfireanalysis/location.go b/v2/objects/profiles/wildfireanalysis/location.go similarity index 95% rename from objects/profiles/wildfireanalysis/location.go rename to v2/objects/profiles/wildfireanalysis/location.go index c766c797..37ef9f3d 100644 --- a/objects/profiles/wildfireanalysis/location.go +++ b/v2/objects/profiles/wildfireanalysis/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -29,7 +29,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewDeviceGroupLocation() *Location { return &Location{DeviceGroup: &DeviceGroupLocation{ diff --git a/objects/profiles/wildfireanalysis/service.go b/v2/objects/profiles/wildfireanalysis/service.go similarity index 97% rename from objects/profiles/wildfireanalysis/service.go rename to v2/objects/profiles/wildfireanalysis/service.go index 5ce93b5c..05440fb3 100644 --- a/objects/profiles/wildfireanalysis/service.go +++ b/v2/objects/profiles/wildfireanalysis/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/service/entry.go b/v2/objects/service/entry.go similarity index 98% rename from objects/service/entry.go rename to v2/objects/service/entry.go index c5cf7fe0..3f4cbc53 100644 --- a/objects/service/entry.go +++ b/v2/objects/service/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/service/group/entry.go b/v2/objects/service/group/entry.go similarity index 94% rename from objects/service/group/entry.go rename to v2/objects/service/group/entry.go index 033dd361..694ffdc0 100644 --- a/objects/service/group/entry.go +++ b/v2/objects/service/group/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/service/group/interfaces.go b/v2/objects/service/group/interfaces.go similarity index 100% rename from objects/service/group/interfaces.go rename to v2/objects/service/group/interfaces.go diff --git a/objects/service/group/location.go b/v2/objects/service/group/location.go similarity index 96% rename from objects/service/group/location.go rename to v2/objects/service/group/location.go index e4afaa29..be2c7a31 100644 --- a/objects/service/group/location.go +++ b/v2/objects/service/group/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/service/group/service.go b/v2/objects/service/group/service.go similarity index 97% rename from objects/service/group/service.go rename to v2/objects/service/group/service.go index 06e6de00..1fac378f 100644 --- a/objects/service/group/service.go +++ b/v2/objects/service/group/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/service/interfaces.go b/v2/objects/service/interfaces.go similarity index 100% rename from objects/service/interfaces.go rename to v2/objects/service/interfaces.go diff --git a/objects/service/location.go b/v2/objects/service/location.go similarity index 96% rename from objects/service/location.go rename to v2/objects/service/location.go index 5e97557c..29ccac4b 100644 --- a/objects/service/location.go +++ b/v2/objects/service/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/objects/service/service.go b/v2/objects/service/service.go similarity index 97% rename from objects/service/service.go rename to v2/objects/service/service.go index 28577057..81878e77 100644 --- a/objects/service/service.go +++ b/v2/objects/service/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/objects/tag/entry.go b/v2/objects/tag/entry.go similarity index 94% rename from objects/tag/entry.go rename to v2/objects/tag/entry.go index 51d888ca..792e31d7 100644 --- a/objects/tag/entry.go +++ b/v2/objects/tag/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/objects/tag/interfaces.go b/v2/objects/tag/interfaces.go similarity index 100% rename from objects/tag/interfaces.go rename to v2/objects/tag/interfaces.go diff --git a/objects/tag/location.go b/v2/objects/tag/location.go similarity index 96% rename from objects/tag/location.go rename to v2/objects/tag/location.go index ac2ff827..7fc94676 100644 --- a/objects/tag/location.go +++ b/v2/objects/tag/location.go @@ -3,9 +3,9 @@ package tag import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/objects/tag/service.go b/v2/objects/tag/service.go similarity index 97% rename from objects/tag/service.go rename to v2/objects/tag/service.go index 1398eed4..fdfc5fe7 100644 --- a/objects/tag/service.go +++ b/v2/objects/tag/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/pango_suite_test.go b/v2/pango_suite_test.go similarity index 100% rename from pango_suite_test.go rename to v2/pango_suite_test.go diff --git a/panorama/device_group/entry.go b/v2/panorama/device_group/entry.go similarity index 96% rename from panorama/device_group/entry.go rename to v2/panorama/device_group/entry.go index 5bf9765f..92b61ed6 100644 --- a/panorama/device_group/entry.go +++ b/v2/panorama/device_group/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/panorama/device_group/interfaces.go b/v2/panorama/device_group/interfaces.go similarity index 100% rename from panorama/device_group/interfaces.go rename to v2/panorama/device_group/interfaces.go diff --git a/panorama/device_group/location.go b/v2/panorama/device_group/location.go similarity index 92% rename from panorama/device_group/location.go rename to v2/panorama/device_group/location.go index c17ea3b7..77c2d046 100644 --- a/panorama/device_group/location.go +++ b/v2/panorama/device_group/location.go @@ -3,9 +3,9 @@ package device_group import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/panorama/device_group/service.go b/v2/panorama/device_group/service.go similarity index 97% rename from panorama/device_group/service.go rename to v2/panorama/device_group/service.go index aafca6aa..393c1be3 100644 --- a/panorama/device_group/service.go +++ b/v2/panorama/device_group/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/panorama/devicegroup/entry.go b/v2/panorama/devicegroup/entry.go similarity index 96% rename from panorama/devicegroup/entry.go rename to v2/panorama/devicegroup/entry.go index 3229d9b7..0865e520 100644 --- a/panorama/devicegroup/entry.go +++ b/v2/panorama/devicegroup/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/panorama/devicegroup/interfaces.go b/v2/panorama/devicegroup/interfaces.go similarity index 100% rename from panorama/devicegroup/interfaces.go rename to v2/panorama/devicegroup/interfaces.go diff --git a/panorama/devicegroup/location.go b/v2/panorama/devicegroup/location.go similarity index 94% rename from panorama/devicegroup/location.go rename to v2/panorama/devicegroup/location.go index 64673c29..a55b4754 100644 --- a/panorama/devicegroup/location.go +++ b/v2/panorama/devicegroup/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/panorama/devicegroup/service.go b/v2/panorama/devicegroup/service.go similarity index 97% rename from panorama/devicegroup/service.go rename to v2/panorama/devicegroup/service.go index 2665a319..ec824533 100644 --- a/panorama/devicegroup/service.go +++ b/v2/panorama/devicegroup/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/panorama/template/entry.go b/v2/panorama/template/entry.go similarity index 97% rename from panorama/template/entry.go rename to v2/panorama/template/entry.go index 84c50dc3..61e9f5e7 100644 --- a/panorama/template/entry.go +++ b/v2/panorama/template/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/panorama/template/interfaces.go b/v2/panorama/template/interfaces.go similarity index 100% rename from panorama/template/interfaces.go rename to v2/panorama/template/interfaces.go diff --git a/panorama/template/location.go b/v2/panorama/template/location.go similarity index 93% rename from panorama/template/location.go rename to v2/panorama/template/location.go index 8480f4eb..916fe2a9 100644 --- a/panorama/template/location.go +++ b/v2/panorama/template/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/panorama/template/service.go b/v2/panorama/template/service.go similarity index 97% rename from panorama/template/service.go rename to v2/panorama/template/service.go index cec39e75..9ddeb20a 100644 --- a/panorama/template/service.go +++ b/v2/panorama/template/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/panorama/template_stack/entry.go b/v2/panorama/template_stack/entry.go similarity index 96% rename from panorama/template_stack/entry.go rename to v2/panorama/template_stack/entry.go index 1dc44c5a..3905aeb7 100644 --- a/panorama/template_stack/entry.go +++ b/v2/panorama/template_stack/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/panorama/template_stack/interfaces.go b/v2/panorama/template_stack/interfaces.go similarity index 100% rename from panorama/template_stack/interfaces.go rename to v2/panorama/template_stack/interfaces.go diff --git a/panorama/template_stack/location.go b/v2/panorama/template_stack/location.go similarity index 94% rename from panorama/template_stack/location.go rename to v2/panorama/template_stack/location.go index 4b08fc60..e9739202 100644 --- a/panorama/template_stack/location.go +++ b/v2/panorama/template_stack/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/panorama/template_stack/service.go b/v2/panorama/template_stack/service.go similarity index 97% rename from panorama/template_stack/service.go rename to v2/panorama/template_stack/service.go index 625ed330..8205121c 100644 --- a/panorama/template_stack/service.go +++ b/v2/panorama/template_stack/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/panorama/template_variable/entry.go b/v2/panorama/template_variable/entry.go similarity index 96% rename from panorama/template_variable/entry.go rename to v2/panorama/template_variable/entry.go index 7a64e671..7cea4e5e 100644 --- a/panorama/template_variable/entry.go +++ b/v2/panorama/template_variable/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/panorama/template_variable/interfaces.go b/v2/panorama/template_variable/interfaces.go similarity index 100% rename from panorama/template_variable/interfaces.go rename to v2/panorama/template_variable/interfaces.go diff --git a/panorama/template_variable/location.go b/v2/panorama/template_variable/location.go similarity index 96% rename from panorama/template_variable/location.go rename to v2/panorama/template_variable/location.go index 9420945b..126dd4ff 100644 --- a/panorama/template_variable/location.go +++ b/v2/panorama/template_variable/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/panorama/template_variable/service.go b/v2/panorama/template_variable/service.go similarity index 97% rename from panorama/template_variable/service.go rename to v2/panorama/template_variable/service.go index acf1db36..598dcaea 100644 --- a/panorama/template_variable/service.go +++ b/v2/panorama/template_variable/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/plugin/doc.go b/v2/plugin/doc.go similarity index 100% rename from plugin/doc.go rename to v2/plugin/doc.go diff --git a/plugin/plugin.go b/v2/plugin/plugin.go similarity index 100% rename from plugin/plugin.go rename to v2/plugin/plugin.go diff --git a/policies/rules/decryption/const.go b/v2/policies/rules/decryption/const.go similarity index 100% rename from policies/rules/decryption/const.go rename to v2/policies/rules/decryption/const.go diff --git a/policies/rules/decryption/entry.go b/v2/policies/rules/decryption/entry.go similarity index 99% rename from policies/rules/decryption/entry.go rename to v2/policies/rules/decryption/entry.go index b858b96d..aeb77e3a 100644 --- a/policies/rules/decryption/entry.go +++ b/v2/policies/rules/decryption/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/policies/rules/decryption/interfaces.go b/v2/policies/rules/decryption/interfaces.go similarity index 100% rename from policies/rules/decryption/interfaces.go rename to v2/policies/rules/decryption/interfaces.go diff --git a/policies/rules/decryption/location.go b/v2/policies/rules/decryption/location.go similarity index 96% rename from policies/rules/decryption/location.go rename to v2/policies/rules/decryption/location.go index c2e40ba7..76335a0a 100644 --- a/policies/rules/decryption/location.go +++ b/v2/policies/rules/decryption/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/policies/rules/decryption/service.go b/v2/policies/rules/decryption/service.go similarity index 97% rename from policies/rules/decryption/service.go rename to v2/policies/rules/decryption/service.go index 9046940e..e4092384 100644 --- a/policies/rules/decryption/service.go +++ b/v2/policies/rules/decryption/service.go @@ -7,12 +7,12 @@ import ( "strings" "time" - "github.com/PaloAltoNetworks/pango/audit" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/movement" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/audit" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/movement" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/policies/rules/nat/const.go b/v2/policies/rules/nat/const.go similarity index 100% rename from policies/rules/nat/const.go rename to v2/policies/rules/nat/const.go diff --git a/policies/rules/nat/entry.go b/v2/policies/rules/nat/entry.go similarity index 99% rename from policies/rules/nat/entry.go rename to v2/policies/rules/nat/entry.go index fac611cb..d9e7def3 100644 --- a/policies/rules/nat/entry.go +++ b/v2/policies/rules/nat/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/policies/rules/nat/interfaces.go b/v2/policies/rules/nat/interfaces.go similarity index 100% rename from policies/rules/nat/interfaces.go rename to v2/policies/rules/nat/interfaces.go diff --git a/policies/rules/nat/location.go b/v2/policies/rules/nat/location.go similarity index 96% rename from policies/rules/nat/location.go rename to v2/policies/rules/nat/location.go index c5230639..3d7e7412 100644 --- a/policies/rules/nat/location.go +++ b/v2/policies/rules/nat/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/policies/rules/nat/service.go b/v2/policies/rules/nat/service.go similarity index 97% rename from policies/rules/nat/service.go rename to v2/policies/rules/nat/service.go index 1d69b66b..4f673755 100644 --- a/policies/rules/nat/service.go +++ b/v2/policies/rules/nat/service.go @@ -7,12 +7,12 @@ import ( "strings" "time" - "github.com/PaloAltoNetworks/pango/audit" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/movement" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/audit" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/movement" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/policies/rules/security/const.go b/v2/policies/rules/security/const.go similarity index 100% rename from policies/rules/security/const.go rename to v2/policies/rules/security/const.go diff --git a/policies/rules/security/entry.go b/v2/policies/rules/security/entry.go similarity index 99% rename from policies/rules/security/entry.go rename to v2/policies/rules/security/entry.go index b7e68d32..fd700354 100644 --- a/policies/rules/security/entry.go +++ b/v2/policies/rules/security/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/policies/rules/security/interfaces.go b/v2/policies/rules/security/interfaces.go similarity index 100% rename from policies/rules/security/interfaces.go rename to v2/policies/rules/security/interfaces.go diff --git a/policies/rules/security/location.go b/v2/policies/rules/security/location.go similarity index 96% rename from policies/rules/security/location.go rename to v2/policies/rules/security/location.go index e81364e6..99338c2e 100644 --- a/policies/rules/security/location.go +++ b/v2/policies/rules/security/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { diff --git a/policies/rules/security/service.go b/v2/policies/rules/security/service.go similarity index 97% rename from policies/rules/security/service.go rename to v2/policies/rules/security/service.go index 2e5d9b52..75850365 100644 --- a/policies/rules/security/service.go +++ b/v2/policies/rules/security/service.go @@ -7,12 +7,12 @@ import ( "strings" "time" - "github.com/PaloAltoNetworks/pango/audit" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/movement" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/audit" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/movement" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/rule/position.go b/v2/rule/position.go similarity index 96% rename from rule/position.go rename to v2/rule/position.go index a22ea3db..e8a4a86f 100644 --- a/rule/position.go +++ b/v2/rule/position.go @@ -3,7 +3,7 @@ package rule import ( "fmt" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) type Position struct { diff --git a/security/profiles/spyware/entry.go b/v2/security/profiles/spyware/entry.go similarity index 99% rename from security/profiles/spyware/entry.go rename to v2/security/profiles/spyware/entry.go index e7ddc54e..f4ea4a7e 100644 --- a/security/profiles/spyware/entry.go +++ b/v2/security/profiles/spyware/entry.go @@ -4,10 +4,10 @@ import ( "encoding/xml" "fmt" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) var ( diff --git a/security/profiles/spyware/interfaces.go b/v2/security/profiles/spyware/interfaces.go similarity index 100% rename from security/profiles/spyware/interfaces.go rename to v2/security/profiles/spyware/interfaces.go diff --git a/security/profiles/spyware/location.go b/v2/security/profiles/spyware/location.go similarity index 96% rename from security/profiles/spyware/location.go rename to v2/security/profiles/spyware/location.go index ee30c3dd..27664abd 100644 --- a/security/profiles/spyware/location.go +++ b/v2/security/profiles/spyware/location.go @@ -4,9 +4,9 @@ import ( "fmt" "strings" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/version" ) type ImportLocation interface { @@ -34,7 +34,7 @@ type DeviceGroupLocation struct { func NewSharedLocation() *Location { return &Location{Shared: &SharedLocation{}, - } + } } func NewVsysLocation() *Location { return &Location{Vsys: &VsysLocation{ diff --git a/security/profiles/spyware/service.go b/v2/security/profiles/spyware/service.go similarity index 97% rename from security/profiles/spyware/service.go rename to v2/security/profiles/spyware/service.go index 68526b32..c9c795cc 100644 --- a/security/profiles/spyware/service.go +++ b/v2/security/profiles/spyware/service.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/PaloAltoNetworks/pango/errors" - "github.com/PaloAltoNetworks/pango/filtering" - "github.com/PaloAltoNetworks/pango/util" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/errors" + "github.com/PaloAltoNetworks/pango/v2/filtering" + "github.com/PaloAltoNetworks/pango/v2/util" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) type Service struct { diff --git a/tests/marshalling_test.go b/v2/tests/marshalling_test.go similarity index 97% rename from tests/marshalling_test.go rename to v2/tests/marshalling_test.go index 868fa835..3b82f6fc 100644 --- a/tests/marshalling_test.go +++ b/v2/tests/marshalling_test.go @@ -7,9 +7,9 @@ import ( . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" - "github.com/PaloAltoNetworks/pango/generic" - "github.com/PaloAltoNetworks/pango/objects/application" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/generic" + "github.com/PaloAltoNetworks/pango/v2/objects/application" + "github.com/PaloAltoNetworks/pango/v2/version" ) var _ = Describe("XML Marshalling and Unmarshalling tests", func() { diff --git a/tests/tests_suite_test.go b/v2/tests/tests_suite_test.go similarity index 100% rename from tests/tests_suite_test.go rename to v2/tests/tests_suite_test.go diff --git a/util/actioner.go b/v2/util/actioner.go similarity index 100% rename from util/actioner.go rename to v2/util/actioner.go diff --git a/util/bulk_element.go b/v2/util/bulk_element.go similarity index 100% rename from util/bulk_element.go rename to v2/util/bulk_element.go diff --git a/util/comparison.go b/v2/util/comparison.go similarity index 100% rename from util/comparison.go rename to v2/util/comparison.go diff --git a/util/const.go b/v2/util/const.go similarity index 100% rename from util/const.go rename to v2/util/const.go diff --git a/util/copy.go b/v2/util/copy.go similarity index 100% rename from util/copy.go rename to v2/util/copy.go diff --git a/util/elementer.go b/v2/util/elementer.go similarity index 100% rename from util/elementer.go rename to v2/util/elementer.go diff --git a/util/entry.go b/v2/util/entry.go similarity index 100% rename from util/entry.go rename to v2/util/entry.go diff --git a/util/hitcount.go b/v2/util/hitcount.go similarity index 100% rename from util/hitcount.go rename to v2/util/hitcount.go diff --git a/util/jobs.go b/v2/util/jobs.go similarity index 100% rename from util/jobs.go rename to v2/util/jobs.go diff --git a/util/license.go b/v2/util/license.go similarity index 100% rename from util/license.go rename to v2/util/license.go diff --git a/util/location.go b/v2/util/location.go similarity index 62% rename from util/location.go rename to v2/util/location.go index af6278da..bb79d81d 100644 --- a/util/location.go +++ b/v2/util/location.go @@ -1,6 +1,6 @@ package util -import "github.com/PaloAltoNetworks/pango/version" +import "github.com/PaloAltoNetworks/pango/v2/version" type ILocation interface { XpathPrefix(version.Number) ([]string, error) diff --git a/util/lock.go b/v2/util/lock.go similarity index 100% rename from util/lock.go rename to v2/util/lock.go diff --git a/util/member.go b/v2/util/member.go similarity index 100% rename from util/member.go rename to v2/util/member.go diff --git a/util/pangoclient.go b/v2/util/pangoclient.go similarity index 91% rename from util/pangoclient.go rename to v2/util/pangoclient.go index 5aaa8027..ad1827c8 100644 --- a/util/pangoclient.go +++ b/v2/util/pangoclient.go @@ -6,9 +6,9 @@ import ( "net/url" "time" - "github.com/PaloAltoNetworks/pango/plugin" - "github.com/PaloAltoNetworks/pango/version" - "github.com/PaloAltoNetworks/pango/xmlapi" + "github.com/PaloAltoNetworks/pango/v2/plugin" + "github.com/PaloAltoNetworks/pango/v2/version" + "github.com/PaloAltoNetworks/pango/v2/xmlapi" ) // PangoClient interface. diff --git a/util/pangocommand.go b/v2/util/pangocommand.go similarity index 100% rename from util/pangocommand.go rename to v2/util/pangocommand.go diff --git a/util/retriever.go b/v2/util/retriever.go similarity index 100% rename from util/retriever.go rename to v2/util/retriever.go diff --git a/util/types.go b/v2/util/types.go similarity index 100% rename from util/types.go rename to v2/util/types.go diff --git a/util/util.go b/v2/util/util.go similarity index 99% rename from util/util.go rename to v2/util/util.go index b48f5fd5..af7c9543 100644 --- a/util/util.go +++ b/v2/util/util.go @@ -9,7 +9,7 @@ import ( "regexp" "strings" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/version" ) var FixedPanosVersionForMultiConfigMove = version.Number{99, 99, 99, ""} diff --git a/util/util_test.go b/v2/util/util_test.go similarity index 100% rename from util/util_test.go rename to v2/util/util_test.go diff --git a/util/xapiclient.go b/v2/util/xapiclient.go similarity index 95% rename from util/xapiclient.go rename to v2/util/xapiclient.go index 992d21b7..755b9a57 100644 --- a/util/xapiclient.go +++ b/v2/util/xapiclient.go @@ -3,8 +3,8 @@ package util import ( "time" - "github.com/PaloAltoNetworks/pango/plugin" - "github.com/PaloAltoNetworks/pango/version" + "github.com/PaloAltoNetworks/pango/v2/plugin" + "github.com/PaloAltoNetworks/pango/v2/version" ) // XapiClient is the interface that describes an pango.Client. diff --git a/util/xmlnode.go b/v2/util/xmlnode.go similarity index 100% rename from util/xmlnode.go rename to v2/util/xmlnode.go diff --git a/version/version.go b/v2/version/version.go similarity index 100% rename from version/version.go rename to v2/version/version.go diff --git a/version/version_test.go b/v2/version/version_test.go similarity index 100% rename from version/version_test.go rename to v2/version/version_test.go diff --git a/xmlapi/addtodata.go b/v2/xmlapi/addtodata.go similarity index 100% rename from xmlapi/addtodata.go rename to v2/xmlapi/addtodata.go diff --git a/xmlapi/cdatatext.go b/v2/xmlapi/cdatatext.go similarity index 100% rename from xmlapi/cdatatext.go rename to v2/xmlapi/cdatatext.go diff --git a/xmlapi/commit.go b/v2/xmlapi/commit.go similarity index 100% rename from xmlapi/commit.go rename to v2/xmlapi/commit.go diff --git a/xmlapi/config.go b/v2/xmlapi/config.go similarity index 100% rename from xmlapi/config.go rename to v2/xmlapi/config.go diff --git a/xmlapi/export.go b/v2/xmlapi/export.go similarity index 100% rename from xmlapi/export.go rename to v2/xmlapi/export.go diff --git a/xmlapi/import.go b/v2/xmlapi/import.go similarity index 100% rename from xmlapi/import.go rename to v2/xmlapi/import.go diff --git a/xmlapi/jobs.go b/v2/xmlapi/jobs.go similarity index 100% rename from xmlapi/jobs.go rename to v2/xmlapi/jobs.go diff --git a/xmlapi/keygen.go b/v2/xmlapi/keygen.go similarity index 100% rename from xmlapi/keygen.go rename to v2/xmlapi/keygen.go diff --git a/xmlapi/lock.go b/v2/xmlapi/lock.go similarity index 100% rename from xmlapi/lock.go rename to v2/xmlapi/lock.go diff --git a/xmlapi/log.go b/v2/xmlapi/log.go similarity index 100% rename from xmlapi/log.go rename to v2/xmlapi/log.go diff --git a/xmlapi/multiconfig.go b/v2/xmlapi/multiconfig.go similarity index 98% rename from xmlapi/multiconfig.go rename to v2/xmlapi/multiconfig.go index f09ee124..6bbcd072 100644 --- a/xmlapi/multiconfig.go +++ b/v2/xmlapi/multiconfig.go @@ -6,7 +6,7 @@ import ( "net/http" "strings" - "github.com/PaloAltoNetworks/pango/errors" + "github.com/PaloAltoNetworks/pango/v2/errors" ) func NewChunkedMultiConfig(capacity int, batchSize int) *MultiConfig { diff --git a/xmlapi/op.go b/v2/xmlapi/op.go similarity index 100% rename from xmlapi/op.go rename to v2/xmlapi/op.go diff --git a/xmlapi/userid.go b/v2/xmlapi/userid.go similarity index 100% rename from xmlapi/userid.go rename to v2/xmlapi/userid.go