Xiang Li
518efab61c
etcdctlv3: snapshot restore works with lease key
2017-01-20 10:36:02 -08:00
Gyu-Ho Lee
f322fe7f0d
clientv3, ctlv3: document range end requirement
2016-11-10 13:10:18 -08:00
Xiang Li
9a0e4dfe4f
ctlv3: fix migration
2016-11-03 09:47:41 -07:00
Timothy St. Clair
f60469af16
ctlv3: Add a no-ttl flag to etcdctl migrate to discard keys on transform.
2016-11-03 09:47:39 -07:00
Hongchao Deng
c05c027a24
etcdctl: fix migrate in outputing client.Node to json
...
Using printf will try to parse the string and replace special
characters. In migrate code, we want to just output the raw
json string of client.Node.
For example,
Printf("%\\") => %!\(MISSING)
Print("%\\") => %\
Thus, we should use print instead.
2016-10-20 10:51:16 -07:00
Gyu-Ho Lee
e406e6e8f4
etcdctl/ctlv3: add 'prev-kv' flag to watch command
2016-10-07 14:23:09 -07:00
Gyu-Ho Lee
4420a29ac4
etcdctl/ctlv3: add 'prev-kv' flag
2016-10-07 10:56:06 -07:00
Xiang Li
3299cad1c3
*: add put prevkv
2016-10-07 10:39:08 -07:00
sharat
adbad1c9b5
ctlv3: close snapshot file before rename (Windows)
2016-09-23 09:11:02 -07:00
sharat
ee2717493a
ctlv3: fix line parsing for Windows
2016-09-15 11:25:53 -07:00
Xiang Li
0054e7e89b
etcdctl: restore should create a snapshot
...
Restore should create a snasphot. So the new db file
can be sent to newly joined member.
2016-09-09 09:03:51 +09:00
Jason E. Aten
5c44cdfdaa
etcdctl/ctlv3: don't crash when we should prompt for pw.
...
when 'etcdctl --user name get blah' is invoked to
prompt for password, don't panic.
addresses the segfault part of #6343
2016-09-04 09:02:50 +09:00
Anthony Romano
3faff8b2e2
etcdctl: fix quoted string handling in txn and watch
...
Fixes #6315
2016-09-04 09:02:28 +09:00
Anthony Romano
e73c928d85
etcdctl: set ServerName for TLS when using --discovery-srv
2016-08-04 11:00:25 -07:00
jesse.millan
2fb72029ef
etcdctl: Add support for formating output of ls command in json
...
The ls command will check for and honor json or extended output formats.
Fixes #5993
2016-07-21 10:50:47 -07:00
Xiang Li
9bc1d08753
etcdctl: only takes 127.0.0.1:2379 as default endpoint
2016-07-11 13:41:53 -07:00
Gyu-Ho Lee
316534e09e
*: remove beta from docs
2016-06-30 10:04:34 -07:00
Gyu-Ho Lee
58dd047ee4
ctlv3: make flags, commands formats consistent
...
1. Capitalize first letter
2. Remove period at the end
(followed the pattern in linux coreutil man page)
2016-06-29 16:16:56 -07:00
Anthony Romano
8bbccf1047
clientv3, ctl3, clientv3/integration: add compact response to compact
2016-06-28 12:29:32 -07:00
Gyu-Ho Lee
76e2bf03b8
etcdctl: v3 compact with physical flag
2016-06-27 12:07:46 -07:00
Gyu-Ho Lee
fa74a0d3bb
etcdctl: change peerURLs flag to 'peer-urls'
2016-06-23 09:52:25 -07:00
Danny Sauer
a998fb4af1
etcdctl: index is incremented in Watcher; remove double-increment
2016-06-23 08:54:34 -05:00
Gyu-Ho Lee
5720fe812e
etcdctl: use CreateDirAll
2016-06-22 15:55:56 -07:00
Xiang Li
82991074bf
Merge pull request #5733 from mitake/user-detail
...
etcdctl: a flag for getting detailed information of a user
2016-06-22 09:26:00 -07:00
Hitoshi Mitake
0e7690780f
etcdctl: a flag for getting detailed information of a user
...
This commit adds a new flag --detail to etcdctl user get command. The
flag enables printing the detailed permission information of the user
like below example:
$ ETCDCTL_API=3 bin/etcdctl --user root:p user get u1
User: u1
Roles: r1 r2
$ ETCDCTL_API=3 bin/etcdctl --user root:p user get u1 --detail
User: u1
Role r1
KV Read:
[k1, k5)
KV Write:
[k1, k5)
Role r2
KV Read:
a
b
[k8, k9)
KV Write:
a
b
[k8, k9)
2016-06-22 13:29:48 +09:00
Gyu-Ho Lee
80aa5978ca
etcdctl/ctlv3: minor clean ups
...
- Fix typo
- Improve command ordering (elect should be below lock)
- Update migrate command description
2016-06-21 13:12:01 -07:00
Gyu-Ho Lee
e5d9ca5180
etcdctl/ctlv3: document auth,user,role
2016-06-21 12:46:42 -07:00
Gyu-Ho Lee
bdca594495
etcdctl/ctlv2: use latest Action interface
2016-06-20 16:34:28 -07:00
Gyu-Ho Lee
0ae9d444f9
ctlv2: use urfave/cli in ctlv2
2016-06-20 15:17:03 -07:00
Hitoshi Mitake
0173564122
etcdctl: slightly enhance output of role revoke-permission
2016-06-20 16:57:50 +09:00
Ajit Yagaty
ad5d55dd4c
v3api: Add a flag to RangeRequest to return only the keys.
...
Currently the user can't list only the keys in a prefix search. In
order to support such operations the filtering will be done on the
server side to reduce the encoding and network transfer costs.
2016-06-19 14:18:39 -07:00
Hitoshi Mitake
18253e2723
*: support getting all users and roles in auth v3
...
This commit expands RPCs for getting user and role and support list up
all users and roles. etcdctl v3 is now support getting all users and
roles with the newly added option --all e.g. etcdctl user get --all
2016-06-17 16:22:41 +09:00
Gyu-Ho Lee
1e38ab1706
etcdctl: print API version (v2, v3 separate)
2016-06-14 15:33:39 -07:00
Hitoshi Mitake
253e313c09
*: support granting and revoking range
...
This commit adds a feature for granting and revoking range of keys,
not a single key.
Example:
$ ETCDCTL_API=3 bin/etcdctl role grant r1 readwrite k1 k3
Role r1 updated
$ ETCDCTL_API=3 bin/etcdctl role get r1
Role r1
KV Read:
[a, b)
[k1, k3)
[k2, k4)
KV Write:
[a, b)
[k1, k3)
[k2, k4)
$ ETCDCTL_API=3 bin/etcdctl --user u1:p get k1 k4
k1
v1
$ ETCDCTL_API=3 bin/etcdctl --user u1:p get k1 k5
Error: etcdserver: permission denied
2016-06-08 14:58:25 -07:00
Gyu-Ho Lee
624d5eb0cb
etcdctl: support range_end for watch command
...
Fix https://github.com/coreos/etcd/issues/5575 .
2016-06-07 16:52:15 -07:00
Gyu-Ho Lee
1e4d3603db
clientv3,ctlv3: following changes for proto change
2016-06-07 13:32:36 -07:00
Xiang Li
83ce1051ff
auth: make naming consistent
2016-06-07 10:54:50 -07:00
Katsuyuki Tateishi
8b75a33398
*: replace '-' with '--' for long options
...
A long option should have double dashes (cf. #4595 ),
so are error messages.
2016-06-06 12:25:45 +09:00
Hitoshi Mitake
94f22e8a07
*: rename RPCs and structs related to revoking
...
This commit renames RPCs and structs related to revoking.
1. UserRevoke -> UserRevokeRole
2. RoleRevoke -> RoleRevokePermission
2016-06-05 16:57:23 +09:00
Hitoshi Mitake
c7a1423d45
*: support deleting a role in auth v3
...
This commit implements RoleDelete() RPC for supporting deleting a role
in auth v3. It also adds a new subcommand "role delete" to etcdctl.
2016-06-04 13:42:45 +09:00
Hitoshi Mitake
0cb1343109
*: support revoking a key from a role in auth v3
...
This commit implements RoleRevoke() RPC for supporting revoking a key
from a role in auth v3. It also adds a new subcommand "role revoke" to
etcdctl.
2016-06-04 13:42:45 +09:00
Hitoshi Mitake
957b07c408
*: support revoking a role from a user in auth v3
...
This commit implements UserRevoke() RPC for supporting revoking a role
from a user in auth v3. It also adds a new subcommand "user revoke" to
etcdctl.
2016-06-04 13:39:26 +09:00
Hitoshi Mitake
10ee69b44c
*: support getting role in auth v3
...
This commit implements RoleGet() RPC of etcdserver and adds a new
subcommand "role get" to etcdctl v3. It will list up permissions that
are granted to a given role.
$ ETCDCTL_API=3 bin/etcdctl role get r1
Role r1
KV Read:
b
d
KV Write:
a
c
d
2016-06-03 13:03:54 +09:00
Hitoshi Mitake
5609fdb9a8
*: support getting user in etcdctl v3
...
This commit adds a new subcommand "user get" to etcdctl v3. It will
list up roles that are granted to a given user.
Example:
$ ETCDCTL_API=3 bin/etcdctl user get u1
User: u1
Roles: r1 r2 r3
This commit also modifies the layout of InternalRaftRequest for
frequent update of auth related members.
2016-06-02 12:10:19 +09:00
Gyu-Ho Lee
240757729c
etcdctl: make v3 as default README
2016-06-01 11:36:21 -07:00
Anthony Romano
2cd3a3bd59
etcdctl: improve error message on migration without v2 keys
...
Fixes #5478
2016-05-30 19:14:04 -07:00
Gyu-Ho Lee
c43e59338f
etcdctl/ctlv3: remove mvccpb.EXPIRE in mirror cmd
2016-05-29 15:11:29 -07:00
Gyu-Ho Lee
5cba7080bc
etcdctl/ctlv3: protobuf write-out for member list
...
Fix https://github.com/coreos/etcd/issues/5297 .
2016-05-25 22:23:57 -07:00
Gyu-Ho Lee
86591d64c5
etcdctl: doc member list, others protobuf output
2016-05-25 22:17:45 -07:00
Xiang Li
628a38d906
etcdctl: add migrate command into readme
2016-05-19 16:53:47 -07:00