palette-sdk-go

module
v0.0.0-...-0ee5d66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2026 License: Apache-2.0

README

Contributions Welcome License Test Go Report Card Go Reference

palette-sdk-go

Palette SDK for the Go programming language.

Usage

A project-scoped client can be instantiated as follows:

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

Switch from a project-scoped client to a tenant-scoped client:

client.WithScopeTenant()(pc)

Note that the above will only succeed if original client's credentials are associated with a user who is authorized as a tenant administrator.

Switch from a tenant-scoped client to a project-scoped client - or from one project to another:

client.WithScopeProject(projectUid)(pc)
Next Steps

Contributing

All contributions are welcome! Feel free to reach out on the Spectro Cloud community Slack.

Make sure pre-commit is installed.

Install the pre-commit scripts:

pre-commit install --hook-type commit-msg
pre-commit install --hook-type pre-commit

Directories

Path Synopsis
api
scripts command
Package main adds deepcopy generation markers to viable struct types in Go files.
Package main adds deepcopy generation markers to viable struct types in Go files.
Package client provides a client for the Spectro Cloud API.
Package client provides a client for the Spectro Cloud API.
apiutil
Package apiutil provides utilities for the Spectro Cloud API client.
Package apiutil provides utilities for the Spectro Cloud API client.
herr
Package herr provides error handling utilities for the Spectro Cloud API client.
Package herr provides error handling utilities for the Spectro Cloud API client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL