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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# cloudscale.ch Go API SDK

[![Go Reference](https://pkg.go.dev/badge/github.com/cloudscale-ch/cloudscale-go-sdk.svg)](https://pkg.go.dev/github.com/cloudscale-ch/cloudscale-go-sdk/v8)
[![Go Reference](https://pkg.go.dev/badge/github.com/cloudscale-ch/cloudscale-go-sdk.svg)](https://pkg.go.dev/github.com/cloudscale-ch/cloudscale-go-sdk/v9)
[![Tests](https://github.com/cloudscale-ch/cloudscale-go-sdk/actions/workflows/test.yaml/badge.svg)](https://github.com/cloudscale-ch/cloudscale-go-sdk/actions/workflows/test.yaml)

If you want to manage your cloudscale.ch server resources with Go, you are at
Expand All @@ -15,7 +15,7 @@ To use the `cloudscale-go-sdk` for managing your cloudscale.ch resources, follow

```console
go mod init example.com/m
go get github.com/cloudscale-ch/cloudscale-go-sdk/v8
go get github.com/cloudscale-ch/cloudscale-go-sdk/v9
```

1. **Create a File**:\
Expand All @@ -28,7 +28,7 @@ To use the `cloudscale-go-sdk` for managing your cloudscale.ch resources, follow
"context"
"fmt"
"github.com/cenkalti/backoff/v5"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"golang.org/x/oauth2"
"log"
"os"
Expand Down Expand Up @@ -91,7 +91,7 @@ To use the `cloudscale-go-sdk` for managing your cloudscale.ch resources, follow
go run main.go
```

That's it! The code will create a server and leverage the `WaitFor` helper to wait until the server status changes to `running`. For more advanced options, check the [documentation](https://pkg.go.dev/github.com/cloudscale-ch/cloudscale-go-sdk/v8).
That's it! The code will create a server and leverage the `WaitFor` helper to wait until the server status changes to `running`. For more advanced options, check the [documentation](https://pkg.go.dev/github.com/cloudscale-ch/cloudscale-go-sdk/v9).

## Testing

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v8.0.0
v9.0.0
2 changes: 1 addition & 1 deletion cloudscale.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

const (
libraryVersion = "v8.0.0"
libraryVersion = "v9.0.0"
defaultBaseURL = "https://api.cloudscale.ch/"
userAgent = "cloudscale/" + libraryVersion
mediaType = "application/json"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/cloudscale-ch/cloudscale-go-sdk/v8
module github.com/cloudscale-ch/cloudscale-go-sdk/v9

go 1.25.0

Expand Down
2 changes: 1 addition & 1 deletion test/integration/cloudscale_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

"golang.org/x/oauth2"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion test/integration/custom_images_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"testing"
"time"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

const testImageURL = "https://at-images.objects.lpg.cloudscale.ch/prod/alpine.raw"
Expand Down
2 changes: 1 addition & 1 deletion test/integration/flavors_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

func TestListFlavors(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/floating_ips_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"
"time"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

const pubKey string = "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFEepRNW5hDct4AdJ8oYsb4lNP5E9XY5fnz3ZvgNCEv7m48+bhUjJXUPuamWix3zigp2lgJHC6SChI/okJ41GUY="
Expand Down
2 changes: 1 addition & 1 deletion test/integration/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package integration

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"math/rand"
"reflect"
"testing"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package integration

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"reflect"
"testing"
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package integration
import (
"context"
"fmt"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"reflect"
"testing"
"time"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package integration

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"reflect"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion test/integration/load_balancer_pools_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package integration

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"reflect"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion test/integration/load_balancers_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package integration

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"reflect"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion test/integration/metrics_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package integration

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"testing"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/networks_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

func TestIntegrationNetwork_CRUD(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/objects_users_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"fmt"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

func TestIntegrationObjectsUser_CRUD(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/server_groups_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"context"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

func TestIntegrationServerGroup_CRUD(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/servers_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

const DefaultImageSlug = "debian-11"
Expand Down
2 changes: 1 addition & 1 deletion test/integration/subnets_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package integration

import (
"context"
"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
"reflect"
"testing"
)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/tags_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"testing"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

func getInitialTags(testName string) cloudscale.TagMap {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/volume_snapshots_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"
"time"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

func TestIntegrationVolumeSnapshot_CRUD(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion test/integration/volumes_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"
"time"

"github.com/cloudscale-ch/cloudscale-go-sdk/v8"
"github.com/cloudscale-ch/cloudscale-go-sdk/v9"
)

func TestIntegrationVolume_CreateAttached(t *testing.T) {
Expand Down