{"id":28242747,"url":"https://github.com/rigdev/rig-go-sdk","last_synced_at":"2025-06-10T22:32:23.543Z","repository":{"id":192047319,"uuid":"685939771","full_name":"rigdev/rig-go-sdk","owner":"rigdev","description":"Go SDK for Rig.dev - The application platform for Kubernetes","archived":false,"fork":false,"pushed_at":"2024-10-29T08:51:04.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-19T06:09:44.931Z","etag":null,"topics":["go","golang","sdk"],"latest_commit_sha":null,"homepage":"https://rig.dev","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/rigdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-09-01T11:09:45.000Z","updated_at":"2024-10-29T08:51:09.000Z","dependencies_parsed_at":"2023-09-02T08:57:45.120Z","dependency_job_id":"72db483a-0257-468e-9069-5bdc9b47919a","html_url":"https://github.com/rigdev/rig-go-sdk","commit_stats":null,"previous_names":["rigdev/rig-go-sdk"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigdev%2Frig-go-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigdev%2Frig-go-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigdev%2Frig-go-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigdev%2Frig-go-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rigdev","download_url":"https://codeload.github.com/rigdev/rig-go-sdk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigdev%2Frig-go-sdk/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259163410,"owners_count":22815161,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go","golang","sdk"],"created_at":"2025-05-19T06:09:43.043Z","updated_at":"2025-06-10T22:32:23.535Z","avatar_url":"https://github.com/rigdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rig Golang SDK\n\n## Overview\n\nRig provides the tools, modules and infrastructure you need to develop and manage applications on Kubernetes. The Rig Golang SDK enables access to Rig services from privileged environments (such as servers or cloud) in Golang.\n\nFor more information, visit the [Rig Golang SDK setup guide](https://docs.rig.dev/sdks/golang).\n\n## Installation\n\nThe Rig Golang SDK can be installed using the go install utility:\n\n```\n# Install the latest version:\ngo get github.com/rigdev/rig-go-sdk@latest\n\n# Or install a specific version:\ngo get github.com/rigdev/rig-go-sdk@x.x.x\n```\n\n## Setup the Client\n\nTo setup the client use the `rig.NewClient` method:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\t\"connectrpc.com/connect\"\n\trig \"github.com/rigdev/rig-go-sdk\"\n\t\"github.com/rigdev/rig-go-api/api/v1/user\"\n)\n\nfunc main() {\n\tclient := rig.NewClient()\n\n\t// you can now make requests to Rig\n\tif _, err := client.User().Create(context.Background(), connect.NewRequest(\u0026user.CreateRequest{\n\t\tInitializers: []*user.Update{},\n\t})); err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(\"success\")\n}\n```\n\n### Host\n\nBy default, the SDK will connect to `http://localhost:4747`. To change this, use the `rig.WithHost(...)` option:\n\n```go\n\tclient := rig.NewClient(rig.WithHost(\"my-rig:4747\"))\n```\n\n### Credentials\n\nBy default, the SDK will use the environment variables `RIG_CLIENT_ID` and `RIG_CLIENT_SECRET` to read the credentials. To explicitly set the credentials, use `rig.WithClientCredentials(...)` option:\n\n```go\n\tclient := rig.NewClient(rig.WithClientCredentials(rig.ClientCredential{\n\t\tClientID:     \"your-client-id\",\n\t\tClientSecret: \"your-client-secret\",\n\t}))\n```\n\n## Documentation\n\n- [Install Rig](https://docs.rig.dev/getting-started)\n- [Setup Users](https://docs.rig.dev/users)\n- [Deploy Capsules](https://docs.rig.dev/capsules)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frigdev%2Frig-go-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frigdev%2Frig-go-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frigdev%2Frig-go-sdk/lists"}