Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 648 Bytes

File metadata and controls

33 lines (24 loc) · 648 Bytes

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.