Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -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
└── 📂 ...
```
14 changes: 0 additions & 14 deletions examples/authorization/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/authorization/go.sum

This file was deleted.

16 changes: 0 additions & 16 deletions examples/automation/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/automation/go.sum

This file was deleted.

16 changes: 0 additions & 16 deletions examples/cost/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/cost/go.sum

This file was deleted.

14 changes: 0 additions & 14 deletions examples/dns/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/dns/go.sum

This file was deleted.

16 changes: 0 additions & 16 deletions examples/dremio/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/dremio/go.sum

This file was deleted.

17 changes: 0 additions & 17 deletions examples/edge/go.mod

This file was deleted.

10 changes: 5 additions & 5 deletions examples/experimental/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 0 additions & 14 deletions examples/functions/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/functions/go.sum

This file was deleted.

16 changes: 0 additions & 16 deletions examples/git/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/git/go.sum

This file was deleted.

17 changes: 0 additions & 17 deletions examples/iaas/go.mod

This file was deleted.

10 changes: 0 additions & 10 deletions examples/iaas/go.sum

This file was deleted.

16 changes: 0 additions & 16 deletions examples/intake/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/intake/go.sum

This file was deleted.

16 changes: 0 additions & 16 deletions examples/kms/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/kms/go.sum

This file was deleted.

14 changes: 0 additions & 14 deletions examples/lbiplists/go.mod

This file was deleted.

8 changes: 0 additions & 8 deletions examples/lbiplists/go.sum

This file was deleted.

Loading
Loading