{"id":45820707,"url":"https://github.com/spectrocloud/palette-sdk-go","last_synced_at":"2026-02-26T20:06:57.176Z","repository":{"id":252430386,"uuid":"605686415","full_name":"spectrocloud/palette-sdk-go","owner":"spectrocloud","description":"Palette SDK for the Go programming language.","archived":false,"fork":false,"pushed_at":"2026-02-16T20:28:03.000Z","size":4117,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-02-17T02:10:43.894Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spectrocloud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-23T17:25:57.000Z","updated_at":"2026-02-09T15:44:37.000Z","dependencies_parsed_at":"2024-10-22T02:24:35.264Z","dependency_job_id":"2a9ad8ce-89a5-4e31-bca0-0974be30b96e","html_url":"https://github.com/spectrocloud/palette-sdk-go","commit_stats":null,"previous_names":["spectrocloud/palette-sdk-go"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/spectrocloud/palette-sdk-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectrocloud%2Fpalette-sdk-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectrocloud%2Fpalette-sdk-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectrocloud%2Fpalette-sdk-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectrocloud%2Fpalette-sdk-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spectrocloud","download_url":"https://codeload.github.com/spectrocloud/palette-sdk-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spectrocloud%2Fpalette-sdk-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29870606,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T18:42:30.764Z","status":"ssl_error","status_checked_at":"2026-02-26T18:41:47.936Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-02-26T20:06:52.974Z","updated_at":"2026-02-26T20:06:57.167Z","avatar_url":"https://github.com/spectrocloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/spectrocloud/palette-sdk-go/issues)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n![Test](https://github.com/spectrocloud/palette-sdk-go/actions/workflows/ci.yml/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/spectrocloud/palette-sdk-go)](https://goreportcard.com/report/github.com/spectrocloud/palette-sdk-go)\n[![Go Reference](https://pkg.go.dev/badge/github.com/spectrocloud/palette-sdk-go.svg)](https://pkg.go.dev/github.com/spectrocloud/palette-sdk-go)\n\n# palette-sdk-go\n\nPalette SDK for the Go programming language.\n\n## Usage\n\nA project-scoped client can be instantiated as follows:\n\n```go\npc := client.New(\n    client.WithPaletteURI(host),\n    client.WithAPIKey(apiKey),\n    client.WithScopeProject(projectUid),\n)\n```\n\nSwitch from a project-scoped client to a tenant-scoped client:\n\n```go\nclient.WithScopeTenant()(pc)\n```\nNote that the above will only succeed if original client's credentials are associated with a user who is authorized as a tenant administrator.\n\nSwitch from a tenant-scoped client to a project-scoped client - or from one project to another:\n\n```go\nclient.WithScopeProject(projectUid)(pc)\n```\n\n### Next Steps\n- Refer to the [examples](examples/) to get started quickly.\n- Refer to [client.go](client/client.go) for all possible client configuration options.\n- Refer to [terraform-provider-spectrocloud](https://github.com/spectrocloud/terraform-provider-spectrocloud) for additional usage examples.\n\n## Contributing\n\nAll 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).\n\nMake sure `pre-commit` is [installed](https://pre-commit.com#install).\n\nInstall the `pre-commit` scripts:\n\n```console\npre-commit install --hook-type commit-msg\npre-commit install --hook-type pre-commit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspectrocloud%2Fpalette-sdk-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspectrocloud%2Fpalette-sdk-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspectrocloud%2Fpalette-sdk-go/lists"}