diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000000..35dbeb7a4a --- /dev/null +++ b/examples/README.md @@ -0,0 +1,31 @@ +# STACKIT Go SDK examples + +This directory contains examples for the STACKIT Go SDK. Please follow the structure explained below. + +Please note that the examples should be using at most 2 API versions of a STACKIT service: +- 1 stable API version is allowed +- 1 unstable API version (alpha, beta) is allowed + +``` +📂 examples +├── 📂 services +│ ├── 📄 go.mod +│ ├── 📄 go.sum +│ ├── 📂 ske # STACKIT service SDK module identifier +│ │ └── 📄 ske.go # Example for the latest stable API version (e.g. v2) +│ ├── 📂 dremio +│ │ └── 📂 preview # The example for a unstable API version (alpha/beta) belong into the 'preview' directory +│ │ └── 📄 dremio_preview.go +│ ├── 📂 iaas # For services with many resources you can also split the examples to multiple directories +│ │ ├── 📂 network +│ │ │ └── 📄 network.go +│ │ ├── 📂 server +│ │ │ └── 📄 server.go +│ │ └── 📂 volume +│ │ └── 📄 volume.go +│ └── 📂 vpn # You can also have examples for a stable API version and a upcoming alpha/beta API version in parallel +│ ├── 📄 vpn.go # Example for the latest stable API version (e.g. v2) +│ └── 📂 preview # Example for the next upcoming API version which isn't stable yet (e.g. v3alpha / v3beta) +│ └── 📄 dremio_preview.go +└── 📂 ... +``` diff --git a/examples/authorization/go.mod b/examples/authorization/go.mod deleted file mode 100644 index 15a2f031db..0000000000 --- a/examples/authorization/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/authorization - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/authorization => ../../services/authorization - -require github.com/stackitcloud/stackit-sdk-go/services/authorization v0.15.4 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/authorization/go.sum b/examples/authorization/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/authorization/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/automation/go.mod b/examples/automation/go.mod deleted file mode 100644 index 7f6de60523..0000000000 --- a/examples/automation/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/automation - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/automation => ../../services/automation - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/automation v0.1.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/automation/go.sum b/examples/automation/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/automation/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/cost/go.mod b/examples/cost/go.mod deleted file mode 100644 index 5a2545a663..0000000000 --- a/examples/cost/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/cost - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/cost => ../../services/cost - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/cost v0.5.2 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/cost/go.sum b/examples/cost/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/cost/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/dns/go.mod b/examples/dns/go.mod deleted file mode 100644 index b11dcbb7ad..0000000000 --- a/examples/dns/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/dns - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/dns => ../../services/dns - -require github.com/stackitcloud/stackit-sdk-go/services/dns v0.23.1 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/dns/go.sum b/examples/dns/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/dns/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/dremio/go.mod b/examples/dremio/go.mod deleted file mode 100644 index 90e9aaeeb7..0000000000 --- a/examples/dremio/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/dremio - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/dremio => ../../services/dremio - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/dremio v0.0.0-00010101000000-000000000000 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/dremio/go.sum b/examples/dremio/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/dremio/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/edge/go.mod b/examples/edge/go.mod deleted file mode 100644 index af3b6d4ca6..0000000000 --- a/examples/edge/go.mod +++ /dev/null @@ -1,17 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/edge - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/edge => ../../services/edge - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/edge v0.13.2 - gopkg.in/yaml.v3 v3.0.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/experimental/go.mod b/examples/experimental/go.mod index 63ce05d899..bd7c78641c 100644 --- a/examples/experimental/go.mod +++ b/examples/experimental/go.mod @@ -3,11 +3,11 @@ module github.com/stackitcloud/stackit-sdk-go/examples/experimental go 1.25 // This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/automation => ../../services/automation - -replace github.com/stackitcloud/stackit-sdk-go/services/albwaf => ../../services/albwaf - -replace github.com/stackitcloud/stackit-sdk-go/core => ../../core +replace ( + github.com/stackitcloud/stackit-sdk-go/core v0.27.1 => ../../core + github.com/stackitcloud/stackit-sdk-go/services/albwaf v0.13.4 => ../../services/albwaf + github.com/stackitcloud/stackit-sdk-go/services/automation v0.1.1 => ../../services/automation +) require ( github.com/stackitcloud/stackit-sdk-go/core v0.27.1 diff --git a/examples/functions/go.mod b/examples/functions/go.mod deleted file mode 100644 index 6f83bb5016..0000000000 --- a/examples/functions/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/functions - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/functions => ../../services/functions - -require github.com/stackitcloud/stackit-sdk-go/services/functions v0.1.0 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/functions/go.sum b/examples/functions/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/functions/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/git/go.mod b/examples/git/go.mod deleted file mode 100644 index e004fe667c..0000000000 --- a/examples/git/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/git - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/git => ../../services/git - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/git v0.14.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/git/go.sum b/examples/git/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/git/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/iaas/go.mod b/examples/iaas/go.mod deleted file mode 100644 index 5ff16135c2..0000000000 --- a/examples/iaas/go.mod +++ /dev/null @@ -1,17 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/iaas - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/iaas => ../../services/iaas - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/iaas v1.14.3 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.26.1 // indirect -) diff --git a/examples/iaas/go.sum b/examples/iaas/go.sum deleted file mode 100644 index aa241359ee..0000000000 --- a/examples/iaas/go.sum +++ /dev/null @@ -1,10 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= -github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.26.1 h1:6NHoXh6c/GQ7+CO03bszc09rnKCeP0dzMmyrnz6mkvs= -github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.26.1/go.mod h1:IsId3wbkp5oaO0JEaHZpZnbVW6KFHlAptwB+1iG3v3w= diff --git a/examples/intake/go.mod b/examples/intake/go.mod deleted file mode 100644 index 4b06db6209..0000000000 --- a/examples/intake/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/intake - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/intake => ../../services/intake - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/intake v0.11.2 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/intake/go.sum b/examples/intake/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/intake/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/kms/go.mod b/examples/kms/go.mod deleted file mode 100644 index c5e7045719..0000000000 --- a/examples/kms/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/kms - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/kms => ../../services/kms - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/kms v1.13.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/kms/go.sum b/examples/kms/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/kms/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/lbiplists/go.mod b/examples/lbiplists/go.mod deleted file mode 100644 index f016213269..0000000000 --- a/examples/lbiplists/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/lbiplists - -go 1.25.9 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/lbiplists => ../../services/lbiplists - -require github.com/stackitcloud/stackit-sdk-go/services/lbiplists v0.0.0-00010101000000-000000000000 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/lbiplists/go.sum b/examples/lbiplists/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/lbiplists/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/lbiplists/lbiplists.go b/examples/lbiplists/lbiplists.go deleted file mode 100644 index d1226f33fa..0000000000 --- a/examples/lbiplists/lbiplists.go +++ /dev/null @@ -1,99 +0,0 @@ -package main - -import ( - "context" - "fmt" - "os" - "time" - - lbiplists "github.com/stackitcloud/stackit-sdk-go/services/lbiplists/v1alphaapi" -) - -func main() { - projectId := "PROJECT_ID" // the uuid of your STACKIT project - - // Specify the region - region := "eu01" - - // Name of the IP list used in this example - name := "sdk-example-ip-list" - - ctx := context.Background() - - // Create a new API client, that uses default authentication and configuration - lbiplistsClient, err := lbiplists.NewAPIClient() - if err != nil { - fmt.Fprintf(os.Stderr, "Creating API client: %v\n", err) - os.Exit(1) - } - - // Create an IP list - createIPListPayload := lbiplists.UploadIPListPayload{ - Name: name, - FileContent: "10.0.0.0/8\n192.168.0.0/16", - } - createIPListResp, err := lbiplistsClient.DefaultAPI.UploadIPList(ctx, projectId, region, name).UploadIPListPayload(createIPListPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UploadIPList`: %v\n", err) - os.Exit(1) - } - fmt.Printf("Created IP list %q with %d CIDR entries.\n", createIPListResp.Name, *createIPListResp.NumberOfIps) - - // List the IP lists for your project - listIPListsResp, err := lbiplistsClient.DefaultAPI.ListIPLists(ctx, projectId, region).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ListIPLists`: %v\n", err) - os.Exit(1) - } - fmt.Printf("Number of IP lists: %v\n", len(listIPListsResp.Items)) - - // Get the IP list - getIPListResp, err := lbiplistsClient.DefaultAPI.GetIPList(ctx, projectId, region, name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GetIPList`: %v\n", err) - os.Exit(1) - } - fmt.Printf("Fetched IP list %q with content hash %q.\n", getIPListResp.Name, *getIPListResp.ContentHash) - - // UploadIPList is limited to 1 request per minute; wait before updating - // the list we just created to avoid a 429 Too Many Requests error. - fmt.Println("Waiting 60s before updating the IP list (UploadIPList is rate-limited to 1 request/minute)...") - time.Sleep(60 * time.Second) - - // Update the IP list by uploading new content - updateIPListPayload := lbiplists.UploadIPListPayload{ - Name: name, - FileContent: "203.0.113.0/24", - Labels: &map[string]string{"purpose": "sdk-example"}, - } - updateIPListResp, err := lbiplistsClient.DefaultAPI.UploadIPList(ctx, projectId, region, name).UploadIPListPayload(updateIPListPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `UploadIPList`: %v\n", err) - os.Exit(1) - } - fmt.Printf("Updated IP list %q, now containing %d CIDR entries.\n", updateIPListResp.Name, *updateIPListResp.NumberOfIps) - - // Get the IP list again to show the update - getUpdatedIPListResp, err := lbiplistsClient.DefaultAPI.GetIPList(ctx, projectId, region, name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `GetIPList`: %v\n", err) - os.Exit(1) - } - fmt.Printf("Fetched updated IP list %q with new content hash %q and labels %v.\n", getUpdatedIPListResp.Name, *getUpdatedIPListResp.ContentHash, *getUpdatedIPListResp.Labels) - - // Delete the IP list - _, err = lbiplistsClient.DefaultAPI.DeleteIPList(ctx, projectId, region, name).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DeleteIPList`: %v\n", err) - os.Exit(1) - } - fmt.Printf("Deleted IP list %q.\n", name) - - // List the IP lists again to show the clean slate - listIPListsResp, err = lbiplistsClient.DefaultAPI.ListIPLists(ctx, projectId, region).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ListIPLists`: %v\n", err) - os.Exit(1) - } - fmt.Printf("Number of IP lists after cleanup: %v\n", len(listIPListsResp.Items)) -} diff --git a/examples/loadbalancer/go.mod b/examples/loadbalancer/go.mod deleted file mode 100644 index 17af602c77..0000000000 --- a/examples/loadbalancer/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/loadbalancer - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/loadbalancer => ../../services/loadbalancer - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.15.2 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/loadbalancer/go.sum b/examples/loadbalancer/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/loadbalancer/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/logme/go.mod b/examples/logme/go.mod deleted file mode 100644 index f5ead34929..0000000000 --- a/examples/logme/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/logme - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/logme => ../../services/logme - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/logme v1.3.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/logme/go.sum b/examples/logme/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/logme/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/logs/go.mod b/examples/logs/go.mod deleted file mode 100644 index 54c3e800dc..0000000000 --- a/examples/logs/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/logs - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/logs => ../../services/logs - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/logs v0.10.2 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/logs/go.sum b/examples/logs/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/logs/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/logs/logs.go b/examples/logs/logs.go deleted file mode 100644 index a3e5355de0..0000000000 --- a/examples/logs/logs.go +++ /dev/null @@ -1,98 +0,0 @@ -package main - -import ( - "context" - "log" - - "github.com/stackitcloud/stackit-sdk-go/core/utils" - logs "github.com/stackitcloud/stackit-sdk-go/services/logs/v1api" -) - -func main() { - ctx := context.Background() - - projectId := "PROJECT_ID" // the uuid of your STACKIT project - regionId := "eu01" - - client, err := logs.NewAPIClient() - if err != nil { - log.Fatalf("[Logs API] Creating API client: %v\n", err) - } - - // Create a Logs Instance - var createdInstance string - createInstancePayload := logs.CreateLogsInstancePayload{ - DisplayName: "my-logs-instance", - RetentionDays: int32(1), - } - createResp, err := client.DefaultAPI.CreateLogsInstance(ctx, projectId, regionId). - CreateLogsInstancePayload(createInstancePayload). - Execute() - if err != nil { - log.Fatalf("[Logs API] Error when calling `CreateLogsInstance`: %v\n", err) - } - log.Printf("[Logs API] Created Logs Instance with ID \"%s\".\n", createResp.Id) - - // List Logs Instances - listResp, err := client.DefaultAPI.ListLogsInstances(ctx, projectId, regionId).Execute() - if err != nil { - log.Fatalf("[Logs API] Error when calling `ListLogsInstances`: %v\n", err) - } - log.Printf("[Logs API] Retrieved %d Logs Instances.\n", len(listResp.Instances)) - - // Get the created Logs Instance - getResp, err := client.DefaultAPI.GetLogsInstance(ctx, projectId, regionId, createdInstance).Execute() - if err != nil { - log.Fatalf("[Logs API] Error when calling `GetLogsInstance`: %v\n", err) - } - log.Printf("[Logs API] Retrieved Logs Instance with ID \"%s\" and Display Name \"%s\".\n", getResp.Id, getResp.DisplayName) - - // Update the created Logs Instance - updatePayload := logs.UpdateLogsInstancePayload{ - DisplayName: utils.Ptr("my-updated-logs-instance"), - RetentionDays: utils.Ptr(int32(7)), - } - updateResp, err := client.DefaultAPI.UpdateLogsInstance(ctx, projectId, regionId, createdInstance). - UpdateLogsInstancePayload(updatePayload). - Execute() - if err != nil { - log.Fatalf("[Logs API] Error when calling `UpdateLogsInstance`: %v\n", err) - } - log.Printf("[Logs API] Updated Logs Instance with ID \"%s\" to Display Name \"%s\".\n", updateResp.Id, updateResp.DisplayName) - - // Create an Access Token - createTokenPayload := logs.CreateAccessTokenPayload{ - DisplayName: "my-access-token", - Permissions: []logs.PermissionsInner{logs.PERMISSIONSINNER_READ}, - } - createTokenResp, err := client.DefaultAPI.CreateAccessToken(ctx, projectId, regionId, createdInstance). - CreateAccessTokenPayload(createTokenPayload). - Execute() - if err != nil { - log.Fatalf("[Logs API] Error when calling `CreateAccessToken`: %v\n", err) - } - log.Printf("[Logs API] Created Access Token with ID \"%s\".\n", createTokenResp.Id) - - // Add Access Token to Logs Instance - err = client.DefaultAPI.UpdateAccessToken(ctx, projectId, regionId, createdInstance, createTokenResp.Id). - // needs at least an empty payload - UpdateAccessTokenPayload(logs.UpdateAccessTokenPayload{}). - Execute() - if err != nil { - log.Fatalf("[Logs API] Error when calling `UpdateAccessToken`: %v\n", err) - } - - // Delete all Access Tokens from Logs Instance - tokenList, err := client.DefaultAPI.DeleteAllAccessTokens(ctx, projectId, regionId, createdInstance).Execute() - if err != nil { - log.Fatalf("[Logs API] Error when calling `DeleteAllAccessTokens`: %v\n", err) - } - log.Printf("[Logs API] Deleted %d Access Tokens from Logs Instance with ID \"%s\".\n", len(tokenList.Tokens), createdInstance) - - // Delete the created Logs Instance - err = client.DefaultAPI.DeleteLogsInstance(ctx, projectId, regionId, createdInstance).Execute() - if err != nil { - log.Fatalf("[Logs API] Error when calling `DeleteLogsInstance`: %v\n", err) - } - log.Printf("[Logs API] Deleted Logs Instance with ID \"%s\".\n", createdInstance) -} diff --git a/examples/mariadb/go.mod b/examples/mariadb/go.mod deleted file mode 100644 index cd590ea08f..0000000000 --- a/examples/mariadb/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/mariadb - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/mariadb => ../../services/mariadb - -require github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.3.1 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/mariadb/go.sum b/examples/mariadb/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/mariadb/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/modelexperiments/go.mod b/examples/modelexperiments/go.mod deleted file mode 100644 index 95e4b5c5f0..0000000000 --- a/examples/modelexperiments/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/modelexperiments - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/modelexperiments => ../../services/modelexperiments - -require github.com/stackitcloud/stackit-sdk-go/services/modelexperiments v0.3.1 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/modelexperiments/go.sum b/examples/modelexperiments/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/modelexperiments/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/mongodbflex/go.mod b/examples/mongodbflex/go.mod deleted file mode 100644 index 1ea0b2da9b..0000000000 --- a/examples/mongodbflex/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/mongodbflex - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/mongodbflex => ../../services/mongodbflex - -require github.com/stackitcloud/stackit-sdk-go/services/mongodbflex v1.12.2 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/mongodbflex/go.sum b/examples/mongodbflex/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/mongodbflex/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/mongodbflex/mongodbflex.go b/examples/mongodbflex/mongodbflex.go deleted file mode 100644 index 7075ae7685..0000000000 --- a/examples/mongodbflex/mongodbflex.go +++ /dev/null @@ -1,75 +0,0 @@ -package main - -import ( - "context" - "fmt" - "os" - - mongodbflex "github.com/stackitcloud/stackit-sdk-go/services/mongodbflex/v2api" - "github.com/stackitcloud/stackit-sdk-go/services/mongodbflex/v2api/wait" -) - -func main() { - projectId := "PROJECT_ID" // the uuid of your STACKIT project - - // Specify the region - region := "eu01" - - // Create a new API client, that uses default authentication and configuration - mongodbflexClient, err := mongodbflex.NewAPIClient() - if err != nil { - fmt.Fprintf(os.Stderr, "Creating API client: %v\n", err) - os.Exit(1) - } - - // Get the MongoDB Flex instances for your project - getInstancesResp, err := mongodbflexClient.DefaultAPI.ListInstances(context.Background(), projectId, region).Tag("tag").Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ListInstances`: %v\n", err) - os.Exit(1) - } - items := getInstancesResp.Items - fmt.Printf("Number of instances: %v\n", len(items)) - - // Create a user associated to an instance - if len(items) == 0 { - fmt.Fprintf(os.Stderr, "Can't create a user without instances") - os.Exit(1) - } - - instanceId := *items[0].Id - username := "example-user" - createUserPayload := mongodbflex.CreateUserPayload{ - Username: &username, - Database: "default", - Roles: []string{"read"}, - } - _, err = mongodbflexClient.DefaultAPI.CreateUser(context.Background(), projectId, instanceId, region).CreateUserPayload(createUserPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CreateUser`: %v\n", err) - os.Exit(1) - } - - fmt.Printf("Created user \"%s\" associated to instance \"%s\".\n", username, *items[0].Name) - - // Restore an instance from a backup - restoreInstancePayload := mongodbflex.RestoreInstancePayload{ - BackupId: "BACKUP_ID", - InstanceId: instanceId, - } - _, err = mongodbflexClient.DefaultAPI.RestoreInstance(context.Background(), projectId, instanceId, region).RestoreInstancePayload(restoreInstancePayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `RestoreInstance`: %v\n", err) - os.Exit(1) - } - - fmt.Printf("Restoring instance \"%s\" from backup \"%s\".\n", instanceId, "BACKUP_ID") - - _, err = wait.RestoreInstanceWaitHandler(context.Background(), mongodbflexClient.DefaultAPI, projectId, instanceId, "BACKUP_ID", region).WaitWithContext(context.Background()) - if err != nil { - fmt.Fprintf(os.Stderr, "Error when waiting for restore to finish: %v\n", err) - os.Exit(1) - } - - fmt.Printf("Restored instance \"%s\" from backup \"%s\".\n", instanceId, "BACKUP_ID") -} diff --git a/examples/objectstorage/go.mod b/examples/objectstorage/go.mod deleted file mode 100644 index 6a51accd00..0000000000 --- a/examples/objectstorage/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/objectstorage - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/objectstorage => ../../services/objectstorage - -require github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.9.2 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/objectstorage/go.sum b/examples/objectstorage/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/objectstorage/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/observability/go.mod b/examples/observability/go.mod deleted file mode 100644 index ced8332e82..0000000000 --- a/examples/observability/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/observability - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/observability => ../../services/observability - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/observability v0.25.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/observability/go.sum b/examples/observability/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/observability/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/opensearch/go.mod b/examples/opensearch/go.mod deleted file mode 100644 index 1dcab63173..0000000000 --- a/examples/opensearch/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/opensearch - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/opensearch => ../../services/opensearch - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/opensearch v1.3.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/opensearch/go.sum b/examples/opensearch/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/opensearch/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/postgresflex/go.mod b/examples/postgresflex/go.mod deleted file mode 100644 index 239e14219e..0000000000 --- a/examples/postgresflex/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/postgresflex - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/postgresflex => ../../services/postgresflex - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.14.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/postgresflex/go.sum b/examples/postgresflex/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/postgresflex/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/rabbitmq/go.mod b/examples/rabbitmq/go.mod deleted file mode 100644 index d0ec43051e..0000000000 --- a/examples/rabbitmq/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/rabbitmq - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/rabbitmq => ../../services/rabbitmq - -require github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v1.3.1 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/rabbitmq/go.sum b/examples/rabbitmq/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/rabbitmq/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/redis/go.mod b/examples/redis/go.mod deleted file mode 100644 index b747165029..0000000000 --- a/examples/redis/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/redis - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/redis => ../../services/redis - -require github.com/stackitcloud/stackit-sdk-go/services/redis v1.4.1 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/redis/go.sum b/examples/redis/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/redis/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/registry/go.mod b/examples/registry/go.mod deleted file mode 100644 index 0ba3193132..0000000000 --- a/examples/registry/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/registry - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/registry => ../../services/registry - -require github.com/stackitcloud/stackit-sdk-go/services/registry v0.0.0 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/registry/go.sum b/examples/registry/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/registry/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/resourcemanager/go.mod b/examples/resourcemanager/go.mod deleted file mode 100644 index c5c369fc09..0000000000 --- a/examples/resourcemanager/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/resourcemanager - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/resourcemanager => ../../services/resourcemanager - -require github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.0.0-00010101000000-000000000000 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/resourcemanager/go.sum b/examples/resourcemanager/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/resourcemanager/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/runcommand/go.mod b/examples/runcommand/go.mod deleted file mode 100644 index 7d6d05efeb..0000000000 --- a/examples/runcommand/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/runcommand - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/runcommand => ../../services/runcommand - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/runcommand v1.10.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/runcommand/go.sum b/examples/runcommand/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/runcommand/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/sca/go.mod b/examples/sca/go.mod deleted file mode 100644 index af9bf8455a..0000000000 --- a/examples/sca/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/sca - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/sca => ../../services/sca - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/sca v0.15.0 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/sca/go.sum b/examples/sca/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/sca/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/secretsmanager/go.mod b/examples/secretsmanager/go.mod deleted file mode 100644 index d667d23ffb..0000000000 --- a/examples/secretsmanager/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/secretsmanager - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/secretsmanager => ../../services/secretsmanager - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.19.1 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/secretsmanager/go.sum b/examples/secretsmanager/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/secretsmanager/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/serviceaccount/go.mod b/examples/serviceaccount/go.mod deleted file mode 100644 index 2692e8bec5..0000000000 --- a/examples/serviceaccount/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/serviceaccount - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/serviceaccount => ../../services/serviceaccount - -require github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.21.0 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/serviceaccount/go.sum b/examples/serviceaccount/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/serviceaccount/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/serviceenablement/go.mod b/examples/serviceenablement/go.mod deleted file mode 100644 index 54d7d86a00..0000000000 --- a/examples/serviceenablement/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/serviceenablement - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/serviceenablement => ../../services/serviceenablement - -require github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.7.2 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/serviceenablement/go.sum b/examples/serviceenablement/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/serviceenablement/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/authorization/authorization.go b/examples/services/authorization/authorization.go similarity index 100% rename from examples/authorization/authorization.go rename to examples/services/authorization/authorization.go diff --git a/examples/automation/automation.go b/examples/services/automation/automation.go similarity index 100% rename from examples/automation/automation.go rename to examples/services/automation/automation.go diff --git a/examples/cost/cost.go b/examples/services/cost/cost.go similarity index 100% rename from examples/cost/cost.go rename to examples/services/cost/cost.go diff --git a/examples/dns/dns.go b/examples/services/dns/dns.go similarity index 100% rename from examples/dns/dns.go rename to examples/services/dns/dns.go diff --git a/examples/dremio/dremio.go b/examples/services/dremio/preview/dremio_preview.go similarity index 100% rename from examples/dremio/dremio.go rename to examples/services/dremio/preview/dremio_preview.go diff --git a/examples/edge/edge.go b/examples/services/edge/preview/edge_preview.go similarity index 100% rename from examples/edge/edge.go rename to examples/services/edge/preview/edge_preview.go diff --git a/examples/functions/functions.go b/examples/services/functions/preview/functions_preview.go similarity index 100% rename from examples/functions/functions.go rename to examples/services/functions/preview/functions_preview.go diff --git a/examples/git/git.go b/examples/services/git/preview/git_preview.go similarity index 100% rename from examples/git/git.go rename to examples/services/git/preview/git_preview.go diff --git a/examples/services/go.mod b/examples/services/go.mod new file mode 100644 index 0000000000..85f53bf5a4 --- /dev/null +++ b/examples/services/go.mod @@ -0,0 +1,90 @@ +module github.com/stackitcloud/stackit-sdk-go/examples/services + +go 1.25.9 + +// This is not needed in production. This is only here to point the golangci linter to the local versions instead of the last release on GitHub. +replace ( + github.com/stackitcloud/stackit-sdk-go/core v0.27.1 => ../../core + github.com/stackitcloud/stackit-sdk-go/services/authorization v0.16.0 => ../../services/authorization + github.com/stackitcloud/stackit-sdk-go/services/automation v0.2.1 => ../../services/automation + github.com/stackitcloud/stackit-sdk-go/services/cost v0.5.3 => ../../services/cost + github.com/stackitcloud/stackit-sdk-go/services/dns v0.25.0 => ../../services/dns + github.com/stackitcloud/stackit-sdk-go/services/dremio v0.7.0 => ../../services/dremio + github.com/stackitcloud/stackit-sdk-go/services/edge v0.14.0 => ../../services/edge + github.com/stackitcloud/stackit-sdk-go/services/functions v0.1.0 => ../../services/functions + github.com/stackitcloud/stackit-sdk-go/services/git v0.15.0 => ../../services/git + github.com/stackitcloud/stackit-sdk-go/services/iaas v1.15.1 => ../../services/iaas + github.com/stackitcloud/stackit-sdk-go/services/intake v0.12.0 => ../../services/intake + github.com/stackitcloud/stackit-sdk-go/services/kms v1.14.0 => ../../services/kms + github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.17.0 => ../../services/loadbalancer + github.com/stackitcloud/stackit-sdk-go/services/logme v1.6.0 => ../../services/logme + github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.4.0 => ../../services/mariadb + github.com/stackitcloud/stackit-sdk-go/services/modelexperiments v0.3.2 => ../../services/modelexperiments + github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.12.0 => ../../services/objectstorage + github.com/stackitcloud/stackit-sdk-go/services/observability v0.26.0 => ../../services/observability + github.com/stackitcloud/stackit-sdk-go/services/opensearch v1.5.0 => ../../services/opensearch + github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.16.0 => ../../services/postgresflex + github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v1.5.0 => ../../services/rabbitmq + github.com/stackitcloud/stackit-sdk-go/services/redis v1.6.0 => ../../services/redis + github.com/stackitcloud/stackit-sdk-go/services/registry v0.1.0 => ../../services/registry + github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.28.0 => ../../services/resourcemanager + github.com/stackitcloud/stackit-sdk-go/services/runcommand v1.11.0 => ../../services/runcommand + github.com/stackitcloud/stackit-sdk-go/services/sca v0.2.1 => ../../services/sca + github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.20.0 => ../../services/secretsmanager + github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.22.0 => ../../services/serviceaccount + github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.8.0 => ../../services/serviceenablement + github.com/stackitcloud/stackit-sdk-go/services/sfs v0.13.1 => ../../services/sfs + github.com/stackitcloud/stackit-sdk-go/services/ske v1.22.0 => ../../services/ske + github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.19.0 => ../../services/sqlserverflex + github.com/stackitcloud/stackit-sdk-go/services/telemetrylink v0.6.0 => ../../services/telemetrylink + github.com/stackitcloud/stackit-sdk-go/services/telemetryrouter v0.6.1 => ../../services/telemetryrouter + github.com/stackitcloud/stackit-sdk-go/services/ufw v0.2.0 => ../../services/ufw + github.com/stackitcloud/stackit-sdk-go/services/valkey v0.4.0 => ../../services/valkey + github.com/stackitcloud/stackit-sdk-go/services/vpn v0.15.3 => ../../services/vpn +) + +require ( + github.com/stackitcloud/stackit-sdk-go/core v0.27.1 + github.com/stackitcloud/stackit-sdk-go/services/authorization v0.16.0 + github.com/stackitcloud/stackit-sdk-go/services/automation v0.2.1 + github.com/stackitcloud/stackit-sdk-go/services/cost v0.5.3 + github.com/stackitcloud/stackit-sdk-go/services/dns v0.25.0 + github.com/stackitcloud/stackit-sdk-go/services/dremio v0.7.0 + github.com/stackitcloud/stackit-sdk-go/services/edge v0.14.0 + github.com/stackitcloud/stackit-sdk-go/services/functions v0.1.0 + github.com/stackitcloud/stackit-sdk-go/services/git v0.15.0 + github.com/stackitcloud/stackit-sdk-go/services/iaas v1.15.1 + github.com/stackitcloud/stackit-sdk-go/services/intake v0.12.0 + github.com/stackitcloud/stackit-sdk-go/services/kms v1.14.0 + github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.17.0 + github.com/stackitcloud/stackit-sdk-go/services/logme v1.6.0 + github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.4.0 + github.com/stackitcloud/stackit-sdk-go/services/modelexperiments v0.3.2 + github.com/stackitcloud/stackit-sdk-go/services/objectstorage v1.12.0 + github.com/stackitcloud/stackit-sdk-go/services/observability v0.26.0 + github.com/stackitcloud/stackit-sdk-go/services/opensearch v1.5.0 + github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.16.0 + github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v1.5.0 + github.com/stackitcloud/stackit-sdk-go/services/redis v1.6.0 + github.com/stackitcloud/stackit-sdk-go/services/registry v0.1.0 + github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.28.0 + github.com/stackitcloud/stackit-sdk-go/services/runcommand v1.11.0 + github.com/stackitcloud/stackit-sdk-go/services/sca v0.2.1 + github.com/stackitcloud/stackit-sdk-go/services/secretsmanager v0.20.0 + github.com/stackitcloud/stackit-sdk-go/services/serviceaccount v0.22.0 + github.com/stackitcloud/stackit-sdk-go/services/serviceenablement v1.8.0 + github.com/stackitcloud/stackit-sdk-go/services/sfs v0.13.1 + github.com/stackitcloud/stackit-sdk-go/services/ske v1.22.0 + github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.19.0 + github.com/stackitcloud/stackit-sdk-go/services/telemetrylink v0.6.0 + github.com/stackitcloud/stackit-sdk-go/services/telemetryrouter v0.6.1 + github.com/stackitcloud/stackit-sdk-go/services/ufw v0.2.0 + github.com/stackitcloud/stackit-sdk-go/services/valkey v0.4.0 + github.com/stackitcloud/stackit-sdk-go/services/vpn v0.15.3 + gopkg.in/yaml.v3 v3.0.1 +) + +require ( + github.com/golang-jwt/jwt/v5 v5.3.1 // indirect + github.com/google/uuid v1.6.0 // indirect +) diff --git a/examples/edge/go.sum b/examples/services/go.sum similarity index 80% rename from examples/edge/go.sum rename to examples/services/go.sum index 2ced7e0604..9c3fd9d317 100644 --- a/examples/edge/go.sum +++ b/examples/services/go.sum @@ -4,8 +4,6 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/examples/iaas/attach_nic/attach_nic.go b/examples/services/iaas/attach_nic/attach_nic.go similarity index 100% rename from examples/iaas/attach_nic/attach_nic.go rename to examples/services/iaas/attach_nic/attach_nic.go diff --git a/examples/iaas/attach_public_ip/attach_public_ip.go b/examples/services/iaas/attach_public_ip/attach_public_ip.go similarity index 100% rename from examples/iaas/attach_public_ip/attach_public_ip.go rename to examples/services/iaas/attach_public_ip/attach_public_ip.go diff --git a/examples/iaas/attach_security_group/attach_security_group.go b/examples/services/iaas/attach_security_group/attach_security_group.go similarity index 100% rename from examples/iaas/attach_security_group/attach_security_group.go rename to examples/services/iaas/attach_security_group/attach_security_group.go diff --git a/examples/iaas/attach_service_account/attach_service_account.go b/examples/services/iaas/attach_service_account/attach_service_account.go similarity index 100% rename from examples/iaas/attach_service_account/attach_service_account.go rename to examples/services/iaas/attach_service_account/attach_service_account.go diff --git a/examples/iaas/attach_volume/attach_volume.go b/examples/services/iaas/attach_volume/attach_volume.go similarity index 100% rename from examples/iaas/attach_volume/attach_volume.go rename to examples/services/iaas/attach_volume/attach_volume.go diff --git a/examples/iaas/network/network.go b/examples/services/iaas/network/network.go similarity index 100% rename from examples/iaas/network/network.go rename to examples/services/iaas/network/network.go diff --git a/examples/iaas/network_area/network_area.go b/examples/services/iaas/network_area/network_area.go similarity index 100% rename from examples/iaas/network_area/network_area.go rename to examples/services/iaas/network_area/network_area.go diff --git a/examples/iaas/publicip/publicIp.go b/examples/services/iaas/publicip/publicIp.go similarity index 100% rename from examples/iaas/publicip/publicIp.go rename to examples/services/iaas/publicip/publicIp.go diff --git a/examples/iaas/routing_tables/routing_tables.go b/examples/services/iaas/routing_tables/routing_tables.go similarity index 100% rename from examples/iaas/routing_tables/routing_tables.go rename to examples/services/iaas/routing_tables/routing_tables.go diff --git a/examples/iaas/server/server.go b/examples/services/iaas/server/server.go similarity index 100% rename from examples/iaas/server/server.go rename to examples/services/iaas/server/server.go diff --git a/examples/iaas/volume/volume.go b/examples/services/iaas/volume/volume.go similarity index 100% rename from examples/iaas/volume/volume.go rename to examples/services/iaas/volume/volume.go diff --git a/examples/intake/intake.go b/examples/services/intake/preview/intake_preview.go similarity index 100% rename from examples/intake/intake.go rename to examples/services/intake/preview/intake_preview.go diff --git a/examples/kms/kms.go b/examples/services/kms/kms.go similarity index 100% rename from examples/kms/kms.go rename to examples/services/kms/kms.go diff --git a/examples/loadbalancer/loadbalancer.go b/examples/services/loadbalancer/loadbalancer.go similarity index 100% rename from examples/loadbalancer/loadbalancer.go rename to examples/services/loadbalancer/loadbalancer.go diff --git a/examples/logme/logme.go b/examples/services/logme/logme.go similarity index 100% rename from examples/logme/logme.go rename to examples/services/logme/logme.go diff --git a/examples/mariadb/mariadb.go b/examples/services/mariadb/mariadb.go similarity index 100% rename from examples/mariadb/mariadb.go rename to examples/services/mariadb/mariadb.go diff --git a/examples/modelexperiments/modelexperiments.go b/examples/services/modelexperiments/modelexperiments.go similarity index 100% rename from examples/modelexperiments/modelexperiments.go rename to examples/services/modelexperiments/modelexperiments.go diff --git a/examples/objectstorage/objectstorage.go b/examples/services/objectstorage/objectstorage.go similarity index 100% rename from examples/objectstorage/objectstorage.go rename to examples/services/objectstorage/objectstorage.go diff --git a/examples/observability/observability.go b/examples/services/observability/observability.go similarity index 100% rename from examples/observability/observability.go rename to examples/services/observability/observability.go diff --git a/examples/opensearch/opensearch.go b/examples/services/opensearch/opensearch.go similarity index 100% rename from examples/opensearch/opensearch.go rename to examples/services/opensearch/opensearch.go diff --git a/examples/postgresflex/postgresflex.go b/examples/services/postgresflex/postgresflex.go similarity index 100% rename from examples/postgresflex/postgresflex.go rename to examples/services/postgresflex/postgresflex.go diff --git a/examples/rabbitmq/rabbitmq.go b/examples/services/rabbitmq/rabbitmq.go similarity index 100% rename from examples/rabbitmq/rabbitmq.go rename to examples/services/rabbitmq/rabbitmq.go diff --git a/examples/redis/redis.go b/examples/services/redis/redis.go similarity index 100% rename from examples/redis/redis.go rename to examples/services/redis/redis.go diff --git a/examples/registry/registry.go b/examples/services/registry/registry.go similarity index 100% rename from examples/registry/registry.go rename to examples/services/registry/registry.go diff --git a/examples/resourcemanager/resourcemanager.go b/examples/services/resourcemanager/resourcemanager.go similarity index 100% rename from examples/resourcemanager/resourcemanager.go rename to examples/services/resourcemanager/resourcemanager.go diff --git a/examples/runcommand/runcommand.go b/examples/services/runcommand/runcommand.go similarity index 100% rename from examples/runcommand/runcommand.go rename to examples/services/runcommand/runcommand.go diff --git a/examples/sca/sca.go b/examples/services/sca/sca.go similarity index 100% rename from examples/sca/sca.go rename to examples/services/sca/sca.go diff --git a/examples/secretsmanager/secretsmanager.go b/examples/services/secretsmanager/secretsmanager.go similarity index 100% rename from examples/secretsmanager/secretsmanager.go rename to examples/services/secretsmanager/secretsmanager.go diff --git a/examples/serviceaccount/serviceaccount.go b/examples/services/serviceaccount/serviceaccount.go similarity index 100% rename from examples/serviceaccount/serviceaccount.go rename to examples/services/serviceaccount/serviceaccount.go diff --git a/examples/serviceenablement/serviceenablement.go b/examples/services/serviceenablement/serviceenablement.go similarity index 100% rename from examples/serviceenablement/serviceenablement.go rename to examples/services/serviceenablement/serviceenablement.go diff --git a/examples/sfs/resourcepool/resourcepool.go b/examples/services/sfs/resourcepool/resourcepool.go similarity index 100% rename from examples/sfs/resourcepool/resourcepool.go rename to examples/services/sfs/resourcepool/resourcepool.go diff --git a/examples/sfs/share/share.go b/examples/services/sfs/share/share.go similarity index 100% rename from examples/sfs/share/share.go rename to examples/services/sfs/share/share.go diff --git a/examples/ske/ske.go b/examples/services/ske/ske.go similarity index 100% rename from examples/ske/ske.go rename to examples/services/ske/ske.go diff --git a/examples/sqlserverflex/v3/sqlserverflex_v3.go b/examples/services/sqlserverflex/sqlserverflex.go similarity index 100% rename from examples/sqlserverflex/v3/sqlserverflex_v3.go rename to examples/services/sqlserverflex/sqlserverflex.go diff --git a/examples/telemetrylink/telemetrylink.go b/examples/services/telemetrylink/telemetrylink.go similarity index 100% rename from examples/telemetrylink/telemetrylink.go rename to examples/services/telemetrylink/telemetrylink.go diff --git a/examples/telemetryrouter/telemetryrouter.go b/examples/services/telemetryrouter/telemetryrouter.go similarity index 100% rename from examples/telemetryrouter/telemetryrouter.go rename to examples/services/telemetryrouter/telemetryrouter.go diff --git a/examples/ufw/ufw.go b/examples/services/ufw/ufw.go similarity index 100% rename from examples/ufw/ufw.go rename to examples/services/ufw/ufw.go diff --git a/examples/valkey/valkey.go b/examples/services/valkey/valkey.go similarity index 100% rename from examples/valkey/valkey.go rename to examples/services/valkey/valkey.go diff --git a/examples/vpn/vpn.go b/examples/services/vpn/vpn.go similarity index 100% rename from examples/vpn/vpn.go rename to examples/services/vpn/vpn.go diff --git a/examples/sfs/go.mod b/examples/sfs/go.mod deleted file mode 100644 index 322536f32a..0000000000 --- a/examples/sfs/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/sfs - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/sfs => ../../services/sfs - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/sfs v0.11.2 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/sfs/go.sum b/examples/sfs/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/sfs/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/ske/go.mod b/examples/ske/go.mod deleted file mode 100644 index 8bbdff1e02..0000000000 --- a/examples/ske/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/ske - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/ske => ../../services/ske - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/ske v1.21.2 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/ske/go.sum b/examples/ske/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/ske/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/sqlserverflex/go.mod b/examples/sqlserverflex/go.mod deleted file mode 100644 index f44219a537..0000000000 --- a/examples/sqlserverflex/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/sqlserverflex - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex => ../../services/sqlserverflex - -require github.com/stackitcloud/stackit-sdk-go/services/sqlserverflex v1.18.1 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/sqlserverflex/go.sum b/examples/sqlserverflex/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/sqlserverflex/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/telemetrylink/go.mod b/examples/telemetrylink/go.mod deleted file mode 100644 index e916a49620..0000000000 --- a/examples/telemetrylink/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/telemetrylink - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/telemetrylink => ../../services/telemetrylink - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.0 - github.com/stackitcloud/stackit-sdk-go/services/telemetrylink v0.5.2 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/telemetrylink/go.sum b/examples/telemetrylink/go.sum deleted file mode 100644 index 042f4a71a5..0000000000 --- a/examples/telemetrylink/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0 h1:7lc6qStcFDFf8zHP4ORPa9joybw+Sa2LtB6BVjKQ+ek= -github.com/stackitcloud/stackit-sdk-go/core v0.27.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/telemetryrouter/go.mod b/examples/telemetryrouter/go.mod deleted file mode 100644 index fcd1f9585e..0000000000 --- a/examples/telemetryrouter/go.mod +++ /dev/null @@ -1,16 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/telemetryrouter - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/telemetryrouter => ../../services/telemetryrouter - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/telemetryrouter v0.5.2 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/telemetryrouter/go.sum b/examples/telemetryrouter/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/telemetryrouter/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/ufw/go.mod b/examples/ufw/go.mod deleted file mode 100644 index bebe414a8f..0000000000 --- a/examples/ufw/go.mod +++ /dev/null @@ -1,15 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/ufw - -go 1.25.9 - -replace github.com/stackitcloud/stackit-sdk-go/services/ufw => ../../services/ufw - -require ( - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 - github.com/stackitcloud/stackit-sdk-go/services/ufw v0.0.0-00010101000000-000000000000 -) - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect -) diff --git a/examples/ufw/go.sum b/examples/ufw/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/ufw/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/valkey/go.mod b/examples/valkey/go.mod deleted file mode 100644 index 5832297b35..0000000000 --- a/examples/valkey/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/valkey - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/valkey => ../../services/valkey - -require github.com/stackitcloud/stackit-sdk-go/services/valkey v0.3.1 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/valkey/go.sum b/examples/valkey/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/valkey/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/examples/vpn/go.mod b/examples/vpn/go.mod deleted file mode 100644 index c031e649ed..0000000000 --- a/examples/vpn/go.mod +++ /dev/null @@ -1,14 +0,0 @@ -module github.com/stackitcloud/stackit-sdk-go/examples/vpn - -go 1.25 - -// This is not needed in production. This is only here to point the golangci linter to the local version instead of the last release on GitHub. -replace github.com/stackitcloud/stackit-sdk-go/services/vpn => ../../services/vpn - -require github.com/stackitcloud/stackit-sdk-go/services/vpn v0.15.1 - -require ( - github.com/golang-jwt/jwt/v5 v5.3.1 // indirect - github.com/google/uuid v1.6.0 // indirect - github.com/stackitcloud/stackit-sdk-go/core v0.27.1 // indirect -) diff --git a/examples/vpn/go.sum b/examples/vpn/go.sum deleted file mode 100644 index 5bae1d1250..0000000000 --- a/examples/vpn/go.sum +++ /dev/null @@ -1,8 +0,0 @@ -github.com/golang-jwt/jwt/v5 v5.3.1 h1:kYf81DTWFe7t+1VvL7eS+jKFVWaUnK9cB1qbwn63YCY= -github.com/golang-jwt/jwt/v5 v5.3.1/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE= -github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= -github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1 h1:k7SrqqMoHjkvHbx6n6nV3Lt51itp8nNplht6vGHkPhw= -github.com/stackitcloud/stackit-sdk-go/core v0.27.1/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/go.work b/go.work index cec81bc6ba..bc06de4004 100644 --- a/go.work +++ b/go.work @@ -3,52 +3,13 @@ go 1.25.9 use ( ./core ./examples/authentication - ./examples/authorization - ./examples/automation ./examples/backgroundrefresh ./examples/configuration - ./examples/cost - ./examples/dns - ./examples/dremio - ./examples/edge ./examples/errorhandling ./examples/experimental - ./examples/functions - ./examples/git - ./examples/iaas - ./examples/intake - ./examples/kms - ./examples/lbiplists - ./examples/loadbalancer - ./examples/logme - ./examples/logs - ./examples/mariadb ./examples/middleware - ./examples/modelexperiments - ./examples/mongodbflex - ./examples/objectstorage - ./examples/observability - ./examples/opensearch - ./examples/postgresflex - ./examples/rabbitmq - ./examples/redis - ./examples/registry - ./examples/resourcemanager ./examples/retries - ./examples/runcommand - ./examples/runtime - ./examples/sca - ./examples/secretsmanager - ./examples/serviceaccount - ./examples/serviceenablement - ./examples/sfs - ./examples/ske - ./examples/sqlserverflex - ./examples/telemetrylink - ./examples/telemetryrouter - ./examples/ufw - ./examples/valkey - ./examples/vpn + ./examples/services ./examples/waiter ./services/alb ./services/albwaf diff --git a/scripts/lint-golangci-lint.sh b/scripts/lint-golangci-lint.sh index e0761e3e82..fa5b85c288 100755 --- a/scripts/lint-golangci-lint.sh +++ b/scripts/lint-golangci-lint.sh @@ -55,6 +55,9 @@ else if [ "${SKIP_NON_GENERATED_FILES}" = false ]; then for example_dir in ${EXAMPLES_PATH}/*; do example=$(basename ${example_dir}) + + [ -d "${example}" ] || continue # skip if it's not a directory + echo ">> Linting example ${example}" cd ${example_dir} ${ROOT_DIR}/custom-gcl run ${GOLANG_CI_ARGS} diff --git a/scripts/sync-tidy.sh b/scripts/sync-tidy.sh index c704d2b82d..712eb93980 100755 --- a/scripts/sync-tidy.sh +++ b/scripts/sync-tidy.sh @@ -22,6 +22,8 @@ for service_dir in ${SERVICES_PATH}/*; do done for example_dir in ${EXAMPLES_PATH}/*; do + [ -d "${example_dir}" ] || continue # skip if it's not a directory + echo ">> Syncing ${example_dir} module" cd ${example_dir} go mod tidy