/
View dependency graph
Depends on
- dh-golang (dh-sequence-golang)
- golang-defaults (golang-any)
- golang-github-dnaeon-go-vcr (golang-github-dnaeon-go-vcr-dev)
- golang-golang-x-text (golang-golang-x-text-dev)
- golang-yaml.v2 (golang-yaml.v2-dev)
- debhelper-compat
Used by
README (full)

Scaleway GO SDK
:warning: This is an early release, keep in mind that the API can break
Scaleway is a single way to create, deploy and scale your infrastructure in the cloud. We help thousands of businesses to run their infrastructures easily.
Documentation
- Godoc
- Developers website (API documentation)
- Products availability guide
- The community tools
Installation
go get github.com/scaleway/scaleway-sdk-go
Getting Started
package main
import (
"fmt"
"github.com/scaleway/scaleway-sdk-go/api/instance/v1"
"github.com/scaleway/scaleway-sdk-go/scw"
"github.com/scaleway/scaleway-sdk-go/utils"
)
func main() {
// Create a Scaleway client
client, err := scw.NewClient(
// Get your organization ID at https://console.scaleway.com/organization/settings
scw.WithDefaultOrganizationID("SCW_DEFAULT_ORGANIZATION_ID"),
// Get your credentials at https://console.scaleway.com/iam/api-keys
scw.WithAuth("SCW_ACCESS_KEY", "SCW_SECRET_KEY"),
// Get more about our availability zones at https://www.scaleway.com/en/docs/console/my-account/reference-content/products-availability/
scw.WithDefaultRegion("SCW_REGION"),
)
if err != nil {
panic(err)
}
// Create SDK objects for Scaleway Instance product
instanceApi := instance.NewAPI(client)
// Call the ListServers method on the Instance SDK
response, err := instanceApi.ListServers(&instance.ListServersRequest{
Zone: scw.ZoneFrPar1,
})
if err != nil {
panic(err)
}
// Do something with the response...
for _, server := range response.Servers {
fmt.Println("Server", server.ID, server.Name)
}
}
Examples
You can find additional examples in the GoDoc.
Development
This repository is at its early stage and is still in active development. If you are looking for a way to contribute please read CONTRIBUTING.md.
Reach us
We love feedback. Feel free to reach us on Scaleway Slack community, we are waiting for you on #opensource.
| dir | .github/ |
| dir | api/ |
| dir | debian/ |
| dir | docs/ |
| dir | errors/ |
| dir | internal/ |
| dir | logger/ |
| dir | marshaler/ |
| dir | namegenerator/ |
| dir | parameter/ |
| dir | scripts/ |
| dir | scw/ |
| dir | strcase/ |
| dir | validation/ |
| file | .gitignore |
| file | .golangci.yml |
| file | .goreleaser.yml |
| file | CHANGELOG.md |
| file | CODE_OF_CONDUCT.md |
| file | CONTRIBUTING.md |
| file | LICENSE |
| file | MAINTAINERS.md |
| file | README.md |
| file | doc.go |
| file | example_test.go |
| file | go.mod |
| file | go.sum |
| file | sdk_compilation_test.go |