https://github.com/spectrocloud/palette-sdk-go
Palette SDK for the Go programming language.
https://github.com/spectrocloud/palette-sdk-go
Last synced: 4 months ago
JSON representation
Palette SDK for the Go programming language.
- Host: GitHub
- URL: https://github.com/spectrocloud/palette-sdk-go
- Owner: spectrocloud
- License: apache-2.0
- Created: 2023-02-23T17:25:57.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-02-16T20:28:03.000Z (4 months ago)
- Last Synced: 2026-02-17T02:10:43.894Z (4 months ago)
- Language: Go
- Size: 3.93 MB
- Stars: 4
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/spectrocloud/palette-sdk-go/issues)
[](https://opensource.org/licenses/Apache-2.0)

[](https://goreportcard.com/report/github.com/spectrocloud/palette-sdk-go)
[](https://pkg.go.dev/github.com/spectrocloud/palette-sdk-go)
# palette-sdk-go
Palette SDK for the Go programming language.
## Usage
A project-scoped client can be instantiated as follows:
```go
pc := client.New(
client.WithPaletteURI(host),
client.WithAPIKey(apiKey),
client.WithScopeProject(projectUid),
)
```
Switch from a project-scoped client to a tenant-scoped client:
```go
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:
```go
client.WithScopeProject(projectUid)(pc)
```
### Next Steps
- Refer to the [examples](examples/) to get started quickly.
- Refer to [client.go](client/client.go) for all possible client configuration options.
- Refer to [terraform-provider-spectrocloud](https://github.com/spectrocloud/terraform-provider-spectrocloud) for additional usage examples.
## Contributing
All contributions are welcome! Feel free to reach out on the [Spectro Cloud community Slack](https://spectrocloudcommunity.slack.com/join/shared_invite/zt-g8gfzrhf-cKavsGD_myOh30K24pImLA#/shared-invite/email).
Make sure `pre-commit` is [installed](https://pre-commit.com#install).
Install the `pre-commit` scripts:
```console
pre-commit install --hook-type commit-msg
pre-commit install --hook-type pre-commit
```