Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.15 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.15 KB

scaleway

Build Status Coverage Status Go Report Card

scaleway is a Go client library for accessing the Scaleway API.

This library is written only with the Go standard library, no package dependencies.

Install

go get github.com/breakbit/scaleway

Usage

import "github.com/breakbit/scaleway"

Construct a new Scaleway client, then use the various services on the client to access differents parts of the Scaleway API. For example:

// Create a client
client := scaleway.NewClient(nil)

// Create credentials structure
credentials := scaleway.NewCredentials("[email protected]", "foobar")

// Create new token
token, _, _ := client.Tokens.Create(credentials, true)

// Use this token
client.AuthToken = token.ID