etcd client for Rust
An etcd (API v3) client for Rust backed by tokio and tonic.
Supported APIs
- KV
- Put
- Range
- Delete
- Transaction
- Compact
- Lease
- Grant
- Revoke
- KeepAlive
- TimeToLive
- Watch
- WatchCreate
- WatchCancel
- Auth
- Authenticate
- RoleAdd
- RoleGrantPermission
- UserAdd
- UserGrantRole
- AuthEnable
- AuthDisable
- Cluster
- MemberAdd
- MemberRemove
- MemberUpdate
- MemberList
- Maintenance
- Alarm
- Status
- Defragment
- Hash
- Snapshot
- MoveLeader
Usage
Add following dependencies in your project cargo.toml
:
[]
= "1.0.0-alpha.0"
use Client;
async
Development
requirements:
- Makefile
- docker
- docker-compose
Start local etcd cluster
make setup-etcd-cluster
stop cluster
make teardown-etcd-cluster
Run tests
make test
for specified case:
TEST_CASE=test_put_error make test-one
License
This project is licensed under the MIT license.