breakbit / scaleway

Go library for accessing the Scaleway API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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("foo@bar.com", "foobar")

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

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

About

Go library for accessing the Scaleway API

License:Other


Languages

Language:Go 98.9%Language:Makefile 1.1%