etcdv3 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -15
- data/lib/etcdv3/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b63b789cf1ebf2e909c4818190278aed694886f5
|
4
|
+
data.tar.gz: d806b91ce19db3ee0c79d2c82e33648805f7de94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2538de053cd4757926e2f3dd542c0cbeaa8d8709917f56e534a708bd2f0928e534784940b61b42dfd0176e9ba0b3ff39534969799bcdfe7960669233fb3c8ea3
|
7
|
+
data.tar.gz: 325d9d8fa4692b1dfd57ae332ecb6e345519dc5ae400f57e4a502036c6f0a90903cdd2d60bd5ca597a36b8d0e1836f466fbf4f5551b73d78faf0c7c2561cb257
|
data/README.md
CHANGED
@@ -1,21 +1,10 @@
|
|
1
|
-
#
|
1
|
+
# etcdv3-ruby
|
2
2
|
|
3
|
-
|
3
|
+
Ruby client for Etcd V3
|
4
4
|
|
5
|
-
|
5
|
+
**WARNING: This is very much a work in progress and should be considered unstable.**
|
6
6
|
|
7
|
-
|
8
|
-
git clone https://github.ibm.com/shaund/etcdv3-ruby.git
|
9
|
-
|
10
|
-
# Build the Gem
|
11
|
-
cd etcd3-ruby && gem build etcdv3.gemspec
|
12
|
-
|
13
|
-
# Install Gem
|
14
|
-
gem install etcdv3
|
15
|
-
|
16
|
-
# Usage
|
17
|
-
|
18
|
-
require 'etcd' # This wasn't a typo.
|
7
|
+
## Usage
|
19
8
|
|
20
9
|
# Initialize insecure Client
|
21
10
|
conn = Etcd.new(url: 'http://127.0.0.1:2379')
|
@@ -26,8 +15,22 @@ Proof of concept Etcd V3 Client.
|
|
26
15
|
# Initialize secure connection with auth
|
27
16
|
conn = Etcd.new(url: 'https://hostname:port', user: "gary", password: "secret")
|
28
17
|
|
18
|
+
**Adding and Fetching Keys**
|
19
|
+
|
29
20
|
# Put
|
30
21
|
conn.put("my", "value")
|
31
22
|
|
32
23
|
# Range
|
33
24
|
conn.range("my")
|
25
|
+
|
26
|
+
**User Managment**
|
27
|
+
|
28
|
+
# Add User
|
29
|
+
conn.add_user('admin', 'secret')
|
30
|
+
|
31
|
+
# Delete User
|
32
|
+
conn.delete_user('admin')
|
33
|
+
|
34
|
+
# List users
|
35
|
+
conn.user_list
|
36
|
+
|
data/lib/etcdv3/version.rb
CHANGED