Xiang Li
ae9b251d99
etcdctl: move endpoint-heath and status into endpoint command
2016-04-12 16:30:26 -07:00
Anthony Romano
a12fd9cc92
etcdctl: print grant/revoke error instead of scanning roles for changes
...
Fixes #5045
2016-04-12 10:49:05 -07:00
mqliang
ff311ba0a7
etcdctlv3: print db size and raft status in 'etcdctl status' command
2016-04-12 22:58:22 +08:00
Xiang Li
b5292f6fce
etcdctl: add snapshot status support
2016-04-11 22:55:47 -07:00
Anthony Romano
8c2225f251
Merge pull request #5038 from heyitsanthony/sshot-docs
...
doc: document etcdctl snapshot command
2016-04-11 16:21:09 -07:00
Anthony Romano
e5a2bd58ec
etcdctl: respect --write-out
...
Support got clobbered about a month ago.
2016-04-11 16:01:38 -07:00
Anthony Romano
6e8d01f956
doc: document etcdctl snapshot command
2016-04-11 15:58:20 -07:00
Anthony Romano
be822b05d2
Merge pull request #5012 from heyitsanthony/snap-api
...
*: snapshot RPC
2016-04-11 13:00:18 -07:00
Anthony Romano
e838c26f8a
etcdctl: use snapshot RPC in snapshot command
2016-04-11 12:32:53 -07:00
Hitoshi Mitake
7ba2646d37
*: support granting a role to a user in v3 auth
2016-04-11 15:53:30 +09:00
Hitoshi Mitake
097cec8194
etcdctl: let some v3 auth related functions be private
...
They don't need to be public.
2016-04-11 13:01:19 +09:00
Hitoshi Mitake
02033b4c47
*: support granting key permission to role in v3 auth
2016-04-11 12:23:19 +09:00
Gyu-Ho Lee
fb85da92e8
*: fix based on gosimple and unused
2016-04-07 23:16:37 -07:00
Anthony Romano
dc17eaace7
*: rename Lease Create to Grant
...
Creating a lease through the client API interface union looked like
"c.Create(...)"-- the method name wasn't very descriptive.
2016-04-07 12:28:14 -07:00
Gyu-Ho Lee
6e6d64fb9b
*: clean up unused vars, functions
...
With help from https://github.com/dominikh/go-unused .
IsNetTimeoutError seems useful, so moved to pkg/netutil.
2016-04-06 21:33:55 -07:00
Xiang Li
c3bca3739f
Merge pull request #4926 from mitake/auth-role-add
...
*: support adding role in auth v3
2016-04-04 18:44:16 -07:00
Hitoshi Mitake
2b17a3919c
*: support adding role in auth v3
2016-04-05 09:28:17 +09:00
Gyu-Ho Lee
1543e7bd95
etcdctl: READMEv3 doc about prefix
2016-04-04 07:00:49 -07:00
Gyu-Ho Lee
9afae9e2c1
*: add del by prefix with e2e tests
2016-04-03 11:41:49 -07:00
Xiang Li
19136afc2b
Merge pull request #4798 from mqliang/memberStatus
...
etcdctlv3: initial implementaton of 'etcdctl member status' command
2016-04-03 08:48:23 -07:00
mqliang
d80af00785
etcdctlv3: implement the 'etcdctl status' command
2016-04-03 13:55:58 +08:00
Gyu-Ho Lee
e8877ab180
etcdctl: print number of deleted keys
2016-04-02 20:54:37 -07:00
Hitoshi Mitake
73166b41e9
*: support changing password in v3 auth
...
This commit adds a functionality for updating password of existing
users.
2016-03-31 15:28:15 +09:00
Hitoshi Mitake
2ad9b5692f
etcdctl: print messages for successful auth operations
...
This commit lets etcdctl v3 follow the manner of etcdctl v2.
2016-03-31 13:56:01 +09:00
Hitoshi Mitake
d8888ded12
*: support deleting user in v3 auth
...
This commit adds a functionality of user deletion. It can be invoked
with the new user delete command.
Example usage:
$ ETCDCTL_API=3 etcdctl user delete usr1
2016-03-31 13:18:51 +09:00
Anthony Romano
2aca3252e8
etcdctl: alarm command
2016-03-30 13:33:52 -07:00
kayrus
720502b25f
etcdctl: Handle ETCDCTL_USERNAME environment
2016-03-29 19:06:31 +02:00
Ajit Yagaty
2e3856740d
etcdctl: Add aliases for command flags.
...
Add aliases to the flags that are supplied to the sub commands.
2016-03-28 20:57:34 -07:00
Xiang Li
87d9f06a45
*: combine etcdctl and etcdctlv3
2016-03-28 11:28:05 -07:00
Anthony Romano
bd832e5b0a
*: migrate Godeps to vendor/
2016-03-22 17:10:28 -07:00
Gyu-Ho Lee
67c2384bdf
*: replace '-' with '--' in doc
...
Fix https://github.com/coreos/etcd/issues/4595 .
2016-03-21 11:12:43 -07:00
mqliang
d8c315ab55
etcdctl: show leader/member information when run 'etcdctl member list' command
...
leader/follower information is very helpful for debugging. User must get this information through http endpoint
before this patch, which is inconvenient.
2016-03-16 13:48:37 +08:00
Xiang Li
bab8f43cb0
Merge pull request #4726 from ajityagaty/mk_in_order
...
etcdctl: Add command to create in-order keys.
2016-03-13 10:15:42 -07:00
Ajit Yagaty
ef0c8e5c18
etcdctl: Add an option to mk command to create in-order keys.
...
Adding a new option to the mk command to create in-order keys
under a given directory, identified by <key> argument. Optionally
TTL can also be set on the newly created in-order key.
2016-03-10 20:28:28 -08:00
Anthony Romano
edafbe9555
etcdctl: clarify setdir purpose in help message
...
Fixes #4640
2016-03-09 14:38:57 -08:00
Anthony Romano
02d9aa481b
etcdctl: accept user:pass format for add user
...
Otherwise needed an interactive terminal to create a user.
2016-03-04 13:29:06 -08:00
Xiang Li
6053480b75
Merge pull request #4580 from AdoHe/etcdctl_use_endpoints
...
etcdctl: use endpoints instead of endpoint flag
2016-02-24 19:01:42 -08:00
AdoHe
d8a8116f9a
etcdctl: use endpoints instead of endpoint flag
2016-02-24 21:49:50 -05:00
Anthony Romano
c5b51946eb
*: exported godoc fixups
2016-02-21 20:36:44 -08:00
Gyu-Ho Lee
658f2e53ba
etcdctl: make doc on 'no-sync' clearer
...
For issues like https://github.com/coreos/etcd/issues/4496 .
2016-02-11 19:52:03 -08:00
Josh Wood
cb7ebe81a8
Merge pull request #4359 from joshix/kayrus-deprcpeers
...
etcdctl: Changed default "endpoint" servers order
2016-01-30 21:20:10 -08:00
kayrus
1b7b20f4f8
etcdctl: Changed default "endpoint" servers order
...
And added "DEPRECATED" note to a "peers" option (relates to d685135832
)
Updated to amend commit.
2016-01-30 21:07:57 -08:00
Gyu-Ho Lee
c8eebd0070
etcdctl: use os.Stdout, os.Stderr directly for cmd
2016-01-27 00:54:40 -08:00
Hitoshi Mitake
cae0577619
etcdctl: add an option to ls for consistent result
...
Like the commit 11f49a09605b, this commit adds a new option "--quorum"
to etcdctl ls command. It is required for obtaining a consistent
result.
2016-01-21 14:03:10 +09:00
Joe Haddad
476178fce0
etcdctl: add docs for configuration flags and env vars
2016-01-15 19:46:29 -05:00
Gyu-Ho Lee
054db2e3cf
etcdctl, etcdctlv3: add help message for non-valid value arg
...
Unix commands interprets argument value of first character '-'
as a flag. And this won't be fixed in our upstream CLI libraries.
This adds help message to show users workarounds.
Addressing https://github.com/coreos/etcd/issues/2020 .
2016-01-13 09:25:24 -08:00
Gyu-Ho Lee
dd02ec6554
etcdctl: ignore value in updatedir command
...
Fixes coreos#4145.
client.KeysAPI ignores value if SetOptions.Dir is true.
2016-01-06 16:37:04 -08:00
Xiang Li
34abead33e
etcdctl: fix syncWithPeerAPI by breaking the loop when there is no error
2015-12-30 11:06:42 -08:00
Anthony Romano
4477ef636e
etcdctl: return exitcode 2 if can't connect to any peers
2015-12-28 23:04:34 -08:00
Xiang Li
2681137fe0
Merge pull request #4020 from xiang90/ctl_04
...
etcdctl: support etcd0.4
2015-12-21 12:55:03 -08:00