Skip to content

doublecloud/go-sdk

Repository files navigation

DoubleCloud Go SDK

GoDoc

Go SDK for DoubleCloud API.

Installation

go install github.com/doublecloud/go-sdk@latest

Usage examples

Initializing SDK

key, err := iamkey.ReadFromJSONFile(*flags.saPath)
if err != nil {
    panic(err)
}
creds, err := dc.ServiceAccountKey(key)
if err != nil {
    panic(err)
}
sdk, err := dc.Build(ctx, dc.Config{
    Credentials: creds,
})

More examples

More examples can be found in examples directory.