{"id":20791469,"url":"https://github.com/kvtools/etcdv3","last_synced_at":"2025-05-05T21:23:23.170Z","repository":{"id":59047350,"uuid":"533847639","full_name":"kvtools/etcdv3","owner":"kvtools","description":"Valkeyrie: etcdv3","archived":false,"fork":false,"pushed_at":"2024-06-30T01:18:55.000Z","size":168,"stargazers_count":2,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-01T20:41:18.694Z","etag":null,"topics":["etcd","etcdv3","go","golang","kv-store","valkeyrie"],"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/kvtools.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":"2022-09-07T16:25:11.000Z","updated_at":"2024-06-30T01:18:58.000Z","dependencies_parsed_at":"2024-06-19T17:54:48.599Z","dependency_job_id":null,"html_url":"https://github.com/kvtools/etcdv3","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fetcdv3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fetcdv3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fetcdv3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kvtools%2Fetcdv3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kvtools","download_url":"https://codeload.github.com/kvtools/etcdv3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225059320,"owners_count":17414671,"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":["etcd","etcdv3","go","golang","kv-store","valkeyrie"],"created_at":"2024-11-17T15:44:49.221Z","updated_at":"2024-11-17T15:44:50.344Z","avatar_url":"https://github.com/kvtools.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Valkeyrie etcd v3\n\n[![GoDoc](https://godoc.org/github.com/kvtools/etcdv3?status.png)](https://godoc.org/github.com/kvtools/etcdv3)\n[![Build Status](https://github.com/kvtools/etcdv3/actions/workflows/build.yml/badge.svg)](https://github.com/kvtools/etcdv3/actions/workflows/build.yml)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kvtools/etcdv3)](https://goreportcard.com/report/github.com/kvtools/etcdv3)\n\n[`valkeyrie`](https://github.com/kvtools/valkeyrie) provides a Go native library to store metadata using Distributed Key/Value stores (or common databases).\n\n## Compatibility\n\nA **storage backend** in `valkeyrie` implements (fully or partially) the [Store](https://github.com/kvtools/valkeyrie/blob/master/store/store.go#L69) interface.\n\n| Calls                 | Etcd |\n|-----------------------|:----:|\n| Put                   | 🟢️  |\n| Get                   | 🟢️  |\n| Delete                | 🟢️  |\n| Exists                | 🟢️  |\n| Watch                 | 🟢️  |\n| WatchTree             | 🟢️  |\n| NewLock (Lock/Unlock) | 🟢️  |\n| List                  | 🟢️  |\n| DeleteTree            | 🟢️  |\n| AtomicPut             | 🟢️  |\n| AtomicDelete          | 🟢️  |\n\n## Supported Versions\n\nEtcd version \u003e= `3.0` with **APIv3**\n\n## Examples\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"log\"\n\n\t\"github.com/kvtools/etcdv3\"\n\t\"github.com/kvtools/valkeyrie\"\n)\n\nfunc main() {\n\tctx := context.Background()\n\n\tconfig := \u0026etcdv3.Config{\n        Password: \"example\",\n\t}\n\n\tkv, err := valkeyrie.NewStore(ctx, etcdv3.StoreName, []string{\"localhost:8500\"}, config)\n\tif err != nil {\n\t\tlog.Fatal(\"Cannot create store\")\n\t}\n\n\tkey := \"foo\"\n\n\terr = kv.Put(ctx, key, []byte(\"bar\"), nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying to put value at key: %v\", key)\n\t}\n\n\tpair, err := kv.Get(ctx, key, nil)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying accessing value at key: %v\", key)\n\t}\n\n\tlog.Printf(\"value: %s\", string(pair.Value))\n\n\terr = kv.Delete(ctx, key)\n\tif err != nil {\n\t\tlog.Fatalf(\"Error trying to delete key %v\", key)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvtools%2Fetcdv3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkvtools%2Fetcdv3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkvtools%2Fetcdv3/lists"}