- Notifications
You must be signed in to change notification settings - Fork73
microsoft/etcd3
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
etcd3 is a high-quality, production-ready client for the Protocol Buffer-basedetcd v3 API. It includes:
- load balancing
- fault handling and reconnections
- transactions
- software transactional memory
- high-level query builders
- lease management
- watchers
- user androlemocking management
- elections
and is type-safe for TypeScript consumers.
Install via:
npm install --save etcd3
Start building!
const{ Etcd3}=require('etcd3');constclient=newEtcd3();(async()=>{awaitclient.put('foo').value('bar');constfooValue=awaitclient.get('foo').string();console.log('foo was:',fooValue);constallFValues=awaitclient.getAll().prefix('f').keys();console.log('all our keys starting with "f":',allFValues);awaitclient.delete().all();})();
OurTypeDoc docs are available here.
Ourtest cases are also readable.
$ npm install$cd src/test/containers/3.2&& docker-compose up# in a separate shell$ npmtest$ docker-compose down
Running tests for this module requires running an etcd3 server locally. The tests try to use the default port initially, and you can configure this by setting theETCD_ADDR
environment variable, likeexport ETCD_ADDR=localhost:12345
.
This project has adopted theMicrosoft Open Source Code of Conduct. For more information see theCode of Conduct FAQ or contactopencode@microsoft.com with any additional questions or comments.
About
🔖 Node.js client for etcd3
Topics
Resources
License
Code of conduct
Security policy
Stars
Watchers
Forks
Packages0
No packages published