Skip to content

Latest commit

 

History

History
46 lines (35 loc) · 1.79 KB

File metadata and controls

46 lines (35 loc) · 1.79 KB
sidebar_label title description hide_table_of_contents tags
Palette Go SDK
Palette Go SDK
Learn how to get started with the Palette Go SDK.
false
palette-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