etcdv3 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +22 -0
- data/README.md +2 -2
- data/lib/etcdv3/auth.rb +2 -2
- data/lib/etcdv3/maintenance.rb +1 -1
- data/lib/etcdv3/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 688201ef38aa54b086f120a6b5eaaaef142167de
|
4
|
+
data.tar.gz: ed7714479e957b95959e26610db9aaab66fdef89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56fe98b7cde847d737d30767894f1e964fbda6935e6775259c94f25cb1bb04af49a9644b2f62a02d05edf58571bf4d379e28f30fc64dc5f6226229ce5a39ab51
|
7
|
+
data.tar.gz: f00d91763751a2872e09c71790043c639dadc0ffa5e8ce05df6dd9bd6a3f0cf16f646bc84f525be44df801b820d98e05262625c55d46565c807053de7cb8711d
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2017 Shaun Davis
|
2
|
+
|
3
|
+
MIT LICENSE
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -52,8 +52,8 @@ conn = Etcdv3.new(url: 'https://hostname:port', user: "gary", password: "secret"
|
|
52
52
|
|
53
53
|
## User Management
|
54
54
|
```ruby
|
55
|
-
|
56
|
-
|
55
|
+
# Add User
|
56
|
+
conn.user_add('admin', 'secret')
|
57
57
|
|
58
58
|
# Delete User
|
59
59
|
conn.user_delete('admin')
|
data/lib/etcdv3/auth.rb
CHANGED
@@ -82,12 +82,12 @@ class Etcdv3
|
|
82
82
|
|
83
83
|
def user_delete(user)
|
84
84
|
request = Etcdserverpb::AuthUserDeleteRequest.new(name: user)
|
85
|
-
@stub.user_delete(request)
|
85
|
+
@stub.user_delete(request, metadata: @metadata)
|
86
86
|
end
|
87
87
|
|
88
88
|
def user_get(user)
|
89
89
|
request = Etcdserverpb::AuthUserGetRequest.new(name: user)
|
90
|
-
@stub.user_get(request)
|
90
|
+
@stub.user_get(request, metadata: @metadata)
|
91
91
|
end
|
92
92
|
|
93
93
|
def user_change_password(user, new_password)
|
data/lib/etcdv3/maintenance.rb
CHANGED
data/lib/etcdv3/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etcdv3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun Davis
|
@@ -48,6 +48,7 @@ files:
|
|
48
48
|
- ".rspec"
|
49
49
|
- ".travis.yml"
|
50
50
|
- Gemfile
|
51
|
+
- LICENSE
|
51
52
|
- README.md
|
52
53
|
- etcdv3.gemspec
|
53
54
|
- lib/etcdv3.rb
|
@@ -97,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
98
|
version: '0'
|
98
99
|
requirements: []
|
99
100
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.6.11
|
101
102
|
signing_key:
|
102
103
|
specification_version: 4
|
103
104
|
summary: A Etcd client library for Version 3
|