Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scaleway/scaleway-sdk-go
Integrate Scaleway with your Go application
https://github.com/scaleway/scaleway-sdk-go
scaleway sdk-go
Last synced: 23 days ago
JSON representation
Integrate Scaleway with your Go application
- Host: GitHub
- URL: https://github.com/scaleway/scaleway-sdk-go
- Owner: scaleway
- License: apache-2.0
- Created: 2019-04-24T14:35:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-22T08:43:53.000Z (about 1 month ago)
- Last Synced: 2024-11-22T09:28:35.374Z (30 days ago)
- Topics: scaleway, sdk-go
- Language: Go
- Homepage: https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go
- Size: 5.72 MB
- Stars: 111
- Watchers: 10
- Forks: 44
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# 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](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go?tab=doc)
- [Developers website](https://www.scaleway.com/en/developers/) (API documentation)
- [Products availability guide](https://www.scaleway.com/en/docs/console/my-account/reference-content/products-availability/)
- [The community tools](https://www.scaleway.com/en/developers/#official-repos)## Installation
```bash
go get github.com/scaleway/scaleway-sdk-go
```## Getting Started
```go
package mainimport (
"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](https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go?tab=doc).
## 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](CONTRIBUTING.md).## Reach us
We love feedback.
Feel free to reach us on [Scaleway Slack community](https://slack.scaleway.com/), we are waiting for you on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource).