{"id":18157465,"url":"https://github.com/nebhale/client-go","last_synced_at":"2025-08-10T10:03:31.464Z","repository":{"id":57624111,"uuid":"398029780","full_name":"nebhale/client-go","owner":"nebhale","description":"Service Bindings for Kubernetes Go Client","archived":false,"fork":false,"pushed_at":"2025-05-22T16:55:29.000Z","size":125,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-22T18:03:21.845Z","etag":null,"topics":["go","golang"],"latest_commit_sha":null,"homepage":"","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/nebhale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-08-19T17:52:34.000Z","updated_at":"2025-05-22T16:55:30.000Z","dependencies_parsed_at":"2024-12-12T13:23:05.544Z","dependency_job_id":"2e8b4182-f010-43c3-8ee7-1b563849e6fa","html_url":"https://github.com/nebhale/client-go","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nebhale/client-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nebhale","download_url":"https://codeload.github.com/nebhale/client-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269706661,"owners_count":24462207,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":["go","golang"],"created_at":"2024-11-02T06:06:20.659Z","updated_at":"2025-08-10T10:03:31.418Z","avatar_url":"https://github.com/nebhale.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# client-go\n\n[![Tests](https://github.com/nebhale/client-go/workflows/Tests/badge.svg?branch=main)](https://github.com/nebhale/client-go/actions/workflows/tests.yaml)\n[![GoDoc](https://godoc.org/github.com/nebhale/client-go?status.svg)](https://godoc.org/github.com/nebhale/client-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/nebhale/client-go)](https://goreportcard.com/report/github.com/nebhale/client-go)\n[![codecov](https://codecov.io/gh/nebhale/client-go/branch/main/graph/badge.svg)](https://codecov.io/gh/nebhale/client-go)\n\n`client-go` is a library to access [Service Binding Specification for Kubernetes](https://k8s-service-bindings.github.io/spec/) conformant Service Binding [Workload Projections](https://k8s-service-bindings.github.io/spec/#workload-projection).\n\n## Example\n\n```golang\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/jackc/pgx/v4\"\n\t\"github.com/nebhale/client-go/bindings\"\n\t\"os\"\n)\n\nfunc main() {\n\tb := bindings.FromServiceBindingRoot()\n\tb = bindings.Filter(b, \"postgresql\")\n\tif len(b) != 1 {\n\t\t_, _ = fmt.Fprintf(os.Stderr, \"Incorrect number of PostgreSQL drivers: %d\\n\", len(b))\n\t\tos.Exit(1)\n\t}\n\n\tu, ok := bindings.Get(b[0], \"url\")\n\tif !ok {\n\t\t_, _ = fmt.Fprintln(os.Stderr, \"No URL in binding\")\n\t\tos.Exit(1)\n\t}\n\n\tconn, err := pgx.Connect(context.Background(), u)\n\tif err != nil {\n\t\t_, _ = fmt.Fprintf(os.Stderr, \"Unable to connect to database: %v\\n\", err)\n\t\tos.Exit(1)\n\t}\n\tdefer conn.Close(context.Background())\n\n\t// ...\n}\n```\n\n## License\n\nApache License v2.0: see [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebhale%2Fclient-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnebhale%2Fclient-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebhale%2Fclient-go/lists"}