Skip to main content
Version: latest

Palette Go SDK

The Palette Go Software Developer Toolkit (SDK) provides Go developers a user-friendly client for interacting with Palette APIs.

Initialize Palette Client

The Go Palette client supports the following authentication methods.

The snippet below showcases an example of how to initialize the Palette client using an API key. You must provide a Palette URI for all authentication methods.

  import (
"github.com/spectrocloud/palette-sdk-go/client"
)

pc := client.New(
client.WithPaletteURI(host),
client.WithAPIKey(apiKey),
)

Get Started

Check out the List Clusters with Palette Go SDK example to learn how to install, configure, and use the SDK. This guide provides instructions and sample code for listing the active clusters in your Palette environment. Additionally, refer to the client folder for a complete list of client configuration options.

Resources