{"id":39659634,"url":"https://github.com/thulasirajkomminar/cratedb-cloud-go","last_synced_at":"2026-05-28T20:31:02.732Z","repository":{"id":257803513,"uuid":"855317392","full_name":"thulasirajkomminar/cratedb-cloud-go","owner":"thulasirajkomminar","description":"CrateDB Cloud API Client Go Library","archived":false,"fork":false,"pushed_at":"2026-04-27T19:39:44.000Z","size":166,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-27T21:24:12.395Z","etag":null,"topics":["api","cratedb","cratedb-client","cratedb-cloud","golang"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/thulasirajkomminar/cratedb-cloud-go","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/thulasirajkomminar.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-10T17:10:54.000Z","updated_at":"2026-04-27T19:39:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"83af6f4a-174b-4722-a5b4-97c134076ff7","html_url":"https://github.com/thulasirajkomminar/cratedb-cloud-go","commit_stats":null,"previous_names":["komminarlabs/cratedb","thulasirajkomminar/cratedb-cloud-go"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/thulasirajkomminar/cratedb-cloud-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thulasirajkomminar%2Fcratedb-cloud-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thulasirajkomminar%2Fcratedb-cloud-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thulasirajkomminar%2Fcratedb-cloud-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thulasirajkomminar%2Fcratedb-cloud-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thulasirajkomminar","download_url":"https://codeload.github.com/thulasirajkomminar/cratedb-cloud-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thulasirajkomminar%2Fcratedb-cloud-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33626136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-28T02:00:06.440Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","cratedb","cratedb-client","cratedb-cloud","golang"],"created_at":"2026-01-18T09:22:49.936Z","updated_at":"2026-05-28T20:31:02.702Z","avatar_url":"https://github.com/thulasirajkomminar.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrateDB Cloud API Client Go Library\n\nThe CrateDB Cloud API client Go library to allow programmatic access to the Cloud products.\n\n## Generated types and API client\n\nThis library is generated using [oapi-codegen](https://github.com/oapi-codegen/oapi-codegen) from this [OpenAPI spec](https://console.cratedb.cloud/api/cloud-api-openapi-v1.0.0.json)\n\n### Generate\n\n```go\ngo generate ./...\n```\n\n## Usage\n\n### Environment variables\n\n```bash\nexport CRATEDB_BASE_URL=\"https://console.cratedb.cloud/\"\nexport CRATEDB_API_KEY=\"crate_09NZV-SXkpX3feMJWXxnSNY2AAa98RlKkxqvqdQBlfC\"\nexport CRATEDB_API_SECRET=\"S5ChS_eQHoUxzplSOv11xQrFRD8W_G-I5Z43w56RIqn\"\n```\n\n### Sample code to list database tokens\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"io\"\n\t\"net/http\"\n\n\t\"github.com/caarlos0/env/v11\"\n\t\"github.com/thulasirajkomminar/cratedb-cloud-go\"\n)\n\ntype CratedbConfig struct {\n\tBaseURL   string `env:\"CRATEDB_BASE_URL\"`\n\tApiKey    string `env:\"CRATEDB_API_KEY\"`\n\tApiSecret string `env:\"CRATEDB_API_SECRET\"`\n}\n\nfunc main() {\n\tcfg := CratedbConfig{}\n\topts := env.Options{RequiredIfNoDef: true}\n\n\terr := env.ParseWithOptions(\u0026cfg, opts)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tctx := context.Background()\n\tclient, err := cratedb.NewClient(cfg.BaseURL, cratedb.WithRequestEditorFn(func(ctx context.Context, req *http.Request) error {\n\t\treq.SetBasicAuth(cfg.ApiKey, cfg.ApiSecret)\n\t\treturn nil\n\t}))\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tresp, err := client.GetApiV2UsersMe(ctx)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer resp.Body.Close()\n\n\tif resp.StatusCode == http.StatusOK {\n\t\tbodyBytes, err := io.ReadAll(resp.Body)\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tbodyString := string(bodyBytes)\n\t\tprintln(bodyString)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthulasirajkomminar%2Fcratedb-cloud-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthulasirajkomminar%2Fcratedb-cloud-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthulasirajkomminar%2Fcratedb-cloud-go/lists"}