{"id":18157463,"url":"https://github.com/nebhale/client-jvm","last_synced_at":"2025-05-06T21:08:34.360Z","repository":{"id":144531155,"uuid":"398314407","full_name":"nebhale/client-jvm","owner":"nebhale","description":"Service Bindings for Kubernetes Java Client","archived":false,"fork":false,"pushed_at":"2025-04-14T12:14:44.000Z","size":280,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-06T21:08:29.640Z","etag":null,"topics":["java"],"latest_commit_sha":null,"homepage":"","language":"Java","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,"zenodo":null}},"created_at":"2021-08-20T15:05:54.000Z","updated_at":"2025-04-14T12:14:47.000Z","dependencies_parsed_at":"2023-11-07T07:28:35.423Z","dependency_job_id":"b4bd0d3b-28a4-4b74-9286-2a20dab96a7b","html_url":"https://github.com/nebhale/client-jvm","commit_stats":null,"previous_names":["nebhale/client-java"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-jvm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-jvm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-jvm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nebhale%2Fclient-jvm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nebhale","download_url":"https://codeload.github.com/nebhale/client-jvm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769423,"owners_count":21801378,"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":["java"],"created_at":"2024-11-02T06:06:20.643Z","updated_at":"2025-05-06T21:08:34.343Z","avatar_url":"https://github.com/nebhale.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# client-jvm\n\n[![Tests](https://github.com/nebhale/client-jvm/workflows/Tests/badge.svg?branch=main)](https://github.com/nebhale/client-jvm/actions/workflows/tests.yaml)\n[![codecov](https://codecov.io/gh/nebhale/client-jvm/branch/main/graph/badge.svg)](https://codecov.io/gh/nebhale/client-jvm)\n\n`client-jvm` is a library to access [Service Binding Specification for Kubernetes](https://servicebinding.io/spec/core/1.1.0/)  conformant Service Binding [Workload Projections](https://servicebinding.io/spec/core/1.1.0/#workload-projection).\n\n## Example\n\n```java\nimport com.nebhale.bindings.Binding;\nimport com.nebhale.bindings.Bindings;\n\nimport java.sql.Connection;\nimport java.sql.DriverManager;\nimport java.sql.SQLException;\n\npublic class Application {\n\n    public static void main(String[] args) {\n        Binding[] bindings = Bindings.fromServiceBindingRoot();\n        bindings = Bindings.filter(bindings, \"postgresql\");\n        if (bindings.length != 1) {\n            System.err.printf(\"Incorrect number of PostgreSQL drivers: %d\\n\", bindings.length);\n            System.exit(1);\n        }\n\n        String url = bindings[0].get(\"url\");\n        if (url == null) {\n            System.err.println(\"No URL in binding\");\n            System.exit(1);\n        }\n\n        Connection conn;\n        try {\n            conn = DriverManager.getConnection(url);\n        } catch (SQLException e) {\n            System.err.printf(\"Unable to connect to database: %s\", e);\n            System.exit(1);\n        }\n\n        // ...\n    }\n\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-jvm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnebhale%2Fclient-jvm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnebhale%2Fclient-jvm/lists"}