{"id":36426826,"url":"https://github.com/nextopcn/gadget-etcd","last_synced_at":"2026-01-11T18:01:15.822Z","repository":{"id":57716053,"uuid":"165967958","full_name":"nextopcn/gadget-etcd","owner":"nextopcn","description":"Etcd v3 java client","archived":false,"fork":false,"pushed_at":"2023-07-05T20:49:40.000Z","size":236,"stargazers_count":7,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-03T21:06:24.558Z","etag":null,"topics":["client","etcd","etcdv3"],"latest_commit_sha":null,"homepage":null,"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/nextopcn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-16T03:36:45.000Z","updated_at":"2021-03-09T22:49:15.000Z","dependencies_parsed_at":"2022-08-25T11:01:19.257Z","dependency_job_id":null,"html_url":"https://github.com/nextopcn/gadget-etcd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nextopcn/gadget-etcd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextopcn%2Fgadget-etcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextopcn%2Fgadget-etcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextopcn%2Fgadget-etcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextopcn%2Fgadget-etcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nextopcn","download_url":"https://codeload.github.com/nextopcn/gadget-etcd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nextopcn%2Fgadget-etcd/sbom","scorecard":{"id":682353,"data":{"date":"2025-08-11","repo":{"name":"github.com/nextopcn/gadget-etcd","commit":"d796337829c1f31299aad37f06088ad63ae2903f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"10 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4jrv-ppp4-jm57","Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3","Warn: Project is vulnerable to: GHSA-4gg5-vx3j-xwc7","Warn: Project is vulnerable to: GHSA-735f-pc8j-v9w8","Warn: Project is vulnerable to: GHSA-77rm-9x9h-xj3g","Warn: Project is vulnerable to: GHSA-g5ww-5jh7-63cx","Warn: Project is vulnerable to: GHSA-h4h5-3hr4-j3g2","Warn: Project is vulnerable to: GHSA-wrvw-hg22-4m67","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T23:36:16.304Z","repository_id":57716053,"created_at":"2025-08-21T23:36:16.304Z","updated_at":"2025-08-21T23:36:16.304Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28316901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: 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":["client","etcd","etcdv3"],"created_at":"2026-01-11T18:00:31.562Z","updated_at":"2026-01-11T18:01:15.813Z","avatar_url":"https://github.com/nextopcn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Table of Contents([中文说明](./README.zh_CN.md))\n=================\n\n   * [1. Gadget-etcd](#1-gadget-etcd)\n      * [1.1. Brief introduction](#11-brief-introduction)\n      * [1.2. Requirements](#12-requirements)\n      * [1.3. Maven dependency](#13-maven-dependency)\n      * [1.4. Install from source code](#14-install-from-source-code)\n   * [2. Usage](#2-usage)\n      * [2.1. Client builder](#21-client-builder)\n      * [2.2. Standalone usage](#22-standalone-usage)\n      * [2.3. DNS SRV](#23-dns-srv)\n      * [2.4. Watch](#24-watch)\n\n# 1. Gadget-etcd  \n## 1.1. Brief introduction  \n[![Build Status](https://travis-ci.org/nextopcn/gadget-etcd.svg?branch=master)](https://travis-ci.org/nextopcn/gadget-etcd)\n[![Coverage Status](https://coveralls.io/repos/github/nextopcn/gadget-etcd/badge.svg?branch=master)](https://coveralls.io/github/nextopcn/gadget-etcd?branch=master)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/cn.nextop/gadget-etcd/badge.svg)](https://maven-badges.herokuapp.com/maven-central/cn.nextop/gadget-etcd)\n[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg?maxAge=2592000)](https://github.com/nextopcn/gadget-etcd/blob/master/LICENSE)  \n  \nAn etcd v3 client written by Java.  \n\n## 1.2. Requirements  \njdk 1.8+  \nmaven-3.3.1+  \n\n## 1.3. Maven dependency\n\n```xml  \n    \u003cdependency\u003e\n        \u003cgroupId\u003ecn.nextop\u003c/groupId\u003e\n        \u003cartifactId\u003egadget-etcd\u003c/artifactId\u003e\n        \u003cversion\u003e1.0.0\u003c/version\u003e\n    \u003c/dependency\u003e\n```\n\n## 1.4. Install from source code  \n\n``` \n    $mvn clean install -Dmaven.test.skip=true\n```  \n\n# 2. Usage  \n## 2.1. Client builder  \n\n```java  \nfinal String[] endpoints = new String[]{ \"http://192.168.1.100:2379\", \n    \"http://192.168.1.101:2379\", \"http://192.168.1.102:2379\" };\n    \nfinal ClientImpl.Builder builder = ClientImpl.builder();\nfinal NameResolverFactory factory = new NameResolverFactory(endpoints);\nbuilder.setNameResolverFactory(factory); \nClient client = builder.build(\"my client\");\n```\n\n## 2.2. Standalone usage  \n\n```java  \n\nfinal String[] endpoints = new String[]{ \"http://192.168.1.100:2379\", \n    \"http://192.168.1.101:2379\", \"http://192.168.1.102:2379\" };\n    \nfinal ClientImpl.Builder builder = ClientImpl.builder();\nfinal NameResolverFactory factory = new NameResolverFactory(endpoints);\nbuilder.setNameResolverFactory(factory); \nClient client = builder.build(\"my client\");\n\nKV kv = client.getKV();\n\nPutRequest.Builder request = PutRequest.newBuilder();\nrequest.setKey(ByteString.copyFrom(\"key\".getBytes()));\nrequest.setValue(ByteString.copyFrom(\"value\".getBytes()));\n\t\t\nCompletableFuture\u003cPutResponse\u003e future = kv.put(request.build());\n// your code goes here. \n\n```\n\n## 2.3. DNS SRV  \n  \n```java  \n\nfinal String[] endpoints = new String[]{ \"dns+srv://etcd.company.cn\" };\n    \nfinal ClientImpl.Builder builder = ClientImpl.builder();\nfinal NameResolverFactory factory = new NameResolverFactory(endpoints);\nbuilder.setNameResolverFactory(factory); \nClient client = builder.build(\"my client\");\n// your code goes here.\n```\n\n## 2.4. Watch\n\n```java  \n\nfinal String[] endpoints = new String[]{ \"dns+srv://etcd.company.cn\" };\n\nfinal ClientImpl.Builder builder = ClientImpl.builder();\nfinal NameResolverFactory factory = new NameResolverFactory(endpoints);\nbuilder.setNameResolverFactory(factory);\nClient client = builder.build(\"my client\");\nWatch watch = client.getWatch();\n// request\nWatchRequest.Builder request = WatchRequest.newBuilder();\nWatchCreateRequest.Builder create = WatchCreateRequest.newBuilder();\ncreate.setKey(ByteString.copyFrom(\"key\".getBytes())).build();\nrequest.setCreateRequest(create.build());\n// watch\nWatcher\u003cList\u003cEvent\u003e\u003e watcher = watch.watch(request.build(), new WatchListener\u003cList\u003cEvent\u003e\u003e() {\n\t@Override\n\tpublic void onWatched(CompletableFuture\u003cList\u003cEvent\u003e\u003e future) {\n\t\ttry {\n\t\t\tList\u003cEvent\u003e events = future.get();\n\t\t\t// your code goes here.\n\t\t} catch (Throwable e) {\n\n\t\t}\n\t}\n}, r -\u003e r.getEventsList());\n\n// your other business\n\nwatcher.close();\n    \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextopcn%2Fgadget-etcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnextopcn%2Fgadget-etcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnextopcn%2Fgadget-etcd/lists"}