Anthony Romano
7e05b33aa0
*: remove os.Kill from signal.Notify
...
Clears SA1016 in staticcheck
2017-04-07 10:52:54 -07:00
Gyu-Ho Lee
7388911e0c
ctlv3: add '--debug' flag (to enable grpclog)
...
By default, grpclog is disabled. It should be configurable
for debugging purposes, as we did in v2.
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-04-05 17:11:31 -07:00
Hitoshi Mitake
0a7fc7cd34
etcdctl: add a new option --from-key for unlimited range permission
...
This commit adds a new option --from-key to the command etcdctl role
grant-permission. If the option is passed, an open ended permission
will be granted to a role e.g. from start-key to any keys those are
larger than start-key.
Example:
$ ETCDCTL_API=3 bin/etcdctl --user root:p role grant r1 readwrite a b
$ ETCDCTL_API=3 bin/etcdctl --user root:p role grant --from-key r1 readwrite c
$ ETCDCTL_API=3 bin/etcdctl --user root:p role get r1
Role r1
KV Read:
[a, b) (prefix a)
[c, <open ended>
KV Write:
[a, b) (prefix a)
[c, <open ended>
Note that a closed parenthesis doesn't follow the above <open ended>
for indicating that the role has an open ended permission ("<open
ended>" is a valid range end).
Fixes https://github.com/coreos/etcd/issues/7468
2017-04-04 17:28:59 +09:00
Xiang Li
65ad91b14d
Merge pull request #7591 from xiang90/validate
...
etcdctl: add initial check perf command
2017-03-27 17:23:58 -07:00
Xiang
60d3375599
etcdctl: add initial check perf command
2017-03-27 17:01:15 -07:00
Anthony Romano
7ef75e373a
Merge pull request #7525 from heyitsanthony/big-backend
...
etcdserver, backend: configure mmap size based on quota
2017-03-23 10:06:00 -07:00
Gyu-Ho Lee
aca2abd8fe
*: use 'io.Seek*' for go1.7+
...
For https://github.com/coreos/etcd/issues/6174 .
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-20 15:15:24 -07:00
Anthony Romano
432c19de61
ctlv3: have "protobuf" in output help string instead of "proto"
...
Fixes #7538
2017-03-20 09:40:21 -07:00
Anthony Romano
5e4b008106
*: base initial mmap size on quota size
2017-03-17 15:38:49 -07:00
Anthony Romano
2f1542c06d
*: use filepath.Join for files
2017-03-16 07:46:06 -07:00
Anthony Romano
3e86779ad5
ctlv3: ensure synced member list before printing env vars on member add
...
In cases of multiple endpoints, it's possible member add would get a its
member list from a member that has not yet recognized the membership
update. Instead, confirm that the member list response is from the
member that acked the member add or from a member that has synced
with the cluster following the member add.
Fixes #7498
2017-03-14 20:01:44 -07:00
Anthony Romano
d1dcc828c8
etcdctl: support mvcc txn
2017-03-08 20:54:15 -08:00
Gyu-Ho Lee
3d75395875
*: remove never-unused vars, minor lint fix
...
Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
2017-03-06 14:59:12 -08:00
Anthony Romano
ad45958841
etcdctl: correctly batch revisions in make-mirror
...
Fixes #7410
2017-03-02 14:30:24 -08:00
fanmin shi
aca4ea2a29
etcdctl: modify etcdctl v2 and v3 for code coverage
2017-02-28 14:50:27 -08:00
sharat
84a81d8caf
ctlv3: add '--ignore-lease' flag to put command
2017-01-25 03:11:19 +05:30
Gyu-Ho Lee
ce9f73a34c
ctlv3: right-align the table output
2017-01-24 11:41:47 -08:00
Xiang Li
96e0f50673
etcdctlv3: snapshot restore works with lease key
2017-01-20 09:37:39 -08:00
Armstrong Li
b8e9bd2b42
ctlv3: print cluster info after adding new member
2017-01-17 09:52:38 -08:00
Gyu-Ho Lee
e03850c4ac
ctlv3: add '--ignore-value' flag to 'put' command
2017-01-13 15:13:18 -08:00
Anthony Romano
d20f23c795
etcdctl: create root role on auth enable if it does not yet exist
...
Kind of tedious to add the root role when enabling auth; can just add
it automatically.
2017-01-09 16:18:13 -08:00
Anthony Romano
154f268031
Merge pull request #7001 from heyitsanthony/etcdctl-doc
...
etcdctl: tighten up output, reorganize README.md
2017-01-04 13:44:49 -08:00
Anthony Romano
00e00f16bb
ctlv3: consider permission denied error to be healthy for endpoints
...
Relaxes the permission expectations for endpoint health by noting:
* permission denial on linearized reads is always through consensus
* endpoint health means consensus with the cluster through the endpoint
So, there's no need to require permission on a health check key in order
to know whether the endpoint is healthy.
Fixes #7057
2016-12-28 09:13:27 -08:00
Anthony Romano
780d2f2a59
etcdctl: tighten up output, reorganize README.md
...
Documentation was far too repetitive, making it a chore to read and
make changes. All commands are now organized by functionality and all
repetitive bits about return values and output are in a generalized
subsections.
etcdctl's output handling was missing a lot of commands. Similarly,
in many cases an output format could be given but fail to report
an error as expected.
2016-12-16 13:54:20 -08:00
Anthony Romano
e71ff361a4
etcdctl: warn when backend takes too long to open on migrate
2016-12-15 18:57:57 -08:00
Anthony Romano
5f3140987e
etcdctl: "fields" output formats
...
Writes out fields from responses in the format "FieldName" : FieldValue. If
FieldValue is a string, it is formatted with %q.
2016-12-12 13:21:20 -08:00
Xiang Li
1ef243e436
etcdctl: etcdctl v3 should print out its API version
2016-11-11 09:33:20 -08:00
Gyu-Ho Lee
31a6efbc13
etcdctl/ctlv3: clarify 'user add' argument (user:password)
2016-11-03 10:47:45 -07:00
Xiang Li
b28b38fb6d
Merge pull request #6793 from timothysc/no-ttl
...
Add a no-ttl flag to etcdctl migrate to discard keys on transform.
2016-11-03 09:00:53 -07:00
Timothy St. Clair
97e96feb1d
ctlv3: Add a no-ttl flag to etcdctl migrate to discard keys on transform.
2016-11-03 10:41:54 -05:00
Xiang Li
2ba42990ec
ctlv3: fix migration
2016-11-02 20:00:07 -07:00
Gyu-Ho Lee
b64de4707d
Merge pull request #6724 from johnbazan/ctlv3_add_user_with_password_inline
...
etcdctl: allow to add a user within one command line
2016-10-31 14:31:09 -07:00
Jonathan Bazan
73b4a58ac0
etcdctl: allow to add a user within one command line
...
This makes the "user add usr:pwd" feature available for ctlv3
without asking for the password in a new prompt.
2016-10-31 18:14:19 -03:00
Hongchao Deng
b3f0eeabe4
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:03:45 -07:00
Gyu-Ho Lee
3a6d4b7f12
e2e: test sort ASCEND when sort target is missing
2016-10-18 16:29:22 -07:00
Gyu-Ho Lee
fac20b228d
ctlv3: support del all keys by '--prefix'
2016-10-17 09:33:59 -07:00
Hitoshi Mitake
d585b43abe
etcdctl, e2e: add --check-key option to endpoint health
...
This commit adds a new option --check-key to endpoint health command
for health checking with a custom key. It is mainly for avoiding
permission problem.
2016-10-14 11:39:46 +09:00
Hitoshi Mitake
644ec0ddef
etcdctl, e2e: parse auth related options in endpoint health command
...
Partially fixes https://github.com/coreos/etcd/issues/6611
2016-10-09 20:34:09 +09:00
Anthony Romano
f2af08f5aa
etcdctl: remove superfluous session in lock command
2016-10-05 13:30:36 -07:00
sharat
dcfbcb7a68
etcdctlv3: minor updates to put and make-mirror command
2016-09-28 10:20:08 +05:30
sharat
af8728f328
etcdctlv3:corrected and organised etcdctl commands
2016-09-23 18:21:54 +05:30
Xiang Li
b1e4defc48
Merge pull request #6501 from sinsharat/feature_add_del_from-key
...
etcdctlv3: del command from-key feature added
2016-09-22 09:15:04 -05:00
Gyu-Ho Lee
804e215981
Merge pull request #6505 from sinsharat/compaction_options_update
...
etcdctlv3: updated compaction options
2016-09-22 06:52:43 -07:00
sharat
5fa233a564
etcdctlv3: updated compaction options
2016-09-22 19:06:05 +05:30
sharat
35ff70656b
etcdctlv3: del command from-key feature added
2016-09-22 16:55:36 +05:30
sharat
1601ee761a
etcdctlv3: updated member command options
2016-09-22 15:04:54 +05:30
Xiang Li
30b26f8f50
etcdctl: remove the use of remprefix
2016-09-22 08:43:31 +08:00
sharat
05175480b3
etcdctlv3: updated snapshot restore options
2016-09-21 16:17:32 +05:30
Sharat
9743ee8b83
etcdctlv3: updated readme for options and examples for get command
2016-09-21 04:51:13 +05:30
sharat
3e67702d4b
etcdctlv3: updated options for TIMETOLIVE
2016-09-20 16:40:58 +05:30
Xiang Li
86aeeca644
Merge pull request #6454 from sinsharat/windows_save_snapshot_fix
...
ctlv3: close snapshot file before rename (Windows)
2016-09-16 18:09:59 -05:00
sharat
fef6557f6c
ctlv3: close snapshot file before rename (Windows)
2016-09-16 21:55:04 +05:30
sharat
b571f4d627
etcdctl/ctlv3: feature added to modify/remove prefix in the destination cluster
2016-09-16 18:48:41 +05:30
Anthony Romano
e77baa3dcb
Merge pull request #6424 from heyitsanthony/v3api-createminmax
...
etcdserver: range queries with min/max create revision
2016-09-14 19:10:52 -07:00
Anthony Romano
82af0c4a7d
ctlv3: remove superfluous session creation
2016-09-14 17:03:33 -07:00
Hitoshi Mitake
4211c0b7af
etcdctl, clientv3: improve printing of role get for prefix permission
...
This commit improves printing of role get command for prefix
permission. If a range permission corresponds to a prefix permission,
it is explicitly printed for a user. Below is an example of the new
printing:
$ ETCDCTL_API=3 bin/etcdctl --user root:p role get r1
Role r1
KV Read:
[/dir/, /dir0) (prefix /dir/)
[k1, k5)
KV Write:
[/dir/, /dir0) (prefix /dir/)
[k1, k5)
2016-09-14 16:10:32 +09:00
Hitoshi Mitake
4e2b09a7ca
etcdctl: an option for granting permission with key prefix
...
This commit adds a new option --prefix to "role grant-permission"
command. If the option is passed, the command interprets the key as a
prefix of range permission.
Example of usage:
$ ETCDCTL_API=3 bin/etcdctl --user root:p role grant-permission --prefix r1 readwrite /dir/
Role r1 updated
$ ETCDCTL_API=3 bin/etcdctl --user root:p role get r1
Role r1
KV Read:
[/dir/, /dir0)
[k1, k5)
KV Write:
[/dir/, /dir0)
[k1, k5)
$ ETCDCTL_API=3 bin/etcdctl --user u1:p put /dir/key val
OK
2016-09-14 12:54:14 +09:00
Gyu-Ho Lee
04a4cea630
etcdctl/ctlv3: add 'lease timetolive' command
2016-09-09 08:21:58 +09:00
sharat
8b764aac71
ctlv3: fix line parsing for Windows
2016-09-09 01:58:33 +05:30
Xiang Li
28d80ad709
Merge pull request #6370 from xiang90/fix_restore
...
etcdctl: restore should create a snapshot
2016-09-08 14:25:07 -05:00
Xiang Li
7e182fa24a
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-07 11:21:53 +08:00
Jason E. Aten
cccbf302f2
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-03 10:32:16 -07:00
Anthony Romano
b1740f5fe4
etcdctl: fix quoted string handling in txn and watch
...
Fixes #6315
2016-09-01 19:39:23 -07:00
Gyu-Ho Lee
524a5a1afb
ctlv3: add 'print-value-only' flag to get command
2016-08-29 12:09:07 -07:00
Xiang Li
86dcfbf205
etcdctl: list output options
2016-08-23 11:32:00 -07:00
Xiang Li
d5d2370fc8
Merge pull request #6172 from xiang90/session
...
session: remove session manager and add ttl
2016-08-15 15:20:19 -07:00
Xiang Li
feaff17259
session: remove session manager and add ttl
2016-08-15 14:12:25 -07:00
Gyu-Ho Lee
6b671b88dc
etcdctl/ctlv3: fix spell errors
2016-08-13 20:54:27 -07:00
Xiang Li
55ca788efe
etcdctl: only takes 127.0.0.1:2379 as default endpoint
2016-07-11 13:28:02 -07:00
Xiang Li
7ec822107a
*: add put prevkv
2016-07-05 20:45:01 -07:00
Xiang Li
12bf1a3382
*: rename preserveKVs to prevKv
2016-07-05 20:45:01 -07:00
Xiang Li
c853704ac9
*: support get-old-kv in watch
2016-07-05 16:17:09 -07:00
Xiang Li
c8c5f41a01
Merge pull request #5836 from xiang90/better_d_prev
...
*: support return prev deleted kv
2016-07-01 14:43:33 -07:00
Xiang Li
40c4a7894d
*: support return prev deleted kv
2016-07-01 14:01:48 -07:00
Gyu-Ho Lee
9b47ca5972
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 15:52:06 -07:00
Anthony Romano
1c25aa6c48
clientv3, ctl3, clientv3/integration: add compact response to compact
2016-06-28 09:32:31 -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
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
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
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
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
Xiang Li
6f2e7875aa
etcdctl: add migrate command
...
Migrate command accepts a datadir and an optional user-provided
transformer function that transform v2 keys to v2 keys.
Migrate command then builds a v3 backend state based on the existing
v2 keys and the output of the transformer function.
2016-05-19 12:17:15 -07:00
Hitoshi Mitake
6259318521
*: attach auth token as a gRPC credential
...
This commit adds a functionality of attaching an auth token to gRPC
connection as a per RPC credential.
For doing this, this commit lets clientv3.Client.Dial() create a
dedicated gRPC connection for doing authentication. With the dedicated
connection, the client calls Authenticate() RPC and obtain its
token. The token is attached to the main gRPC connection with
grpc.WithPerRPCCredentials().
This commit also adds a new option --username to etcdctl (v3). With
this option, etcdctl attaches its auth token to the main gRPC
connection (currently it is not used at all).
2016-05-17 13:26:12 +09:00
Anthony Romano
798718c49b
etcdctl: verify snapshot hash on restore
...
Fixes #4097
2016-05-16 12:08:08 -07:00
Gyu-Ho Lee
3ec627d1a8
etcdctl/ctlv3: allow empty key
...
Fix https://github.com/coreos/etcd/issues/5323 .
2016-05-13 11:29:58 -07:00
Anthony Romano
393725fe5f
clientv3/concurrency: ctx-ize Leader(), Resign(), and Unlock()
2016-05-13 10:07:35 -07:00
Gyu-Ho Lee
c538e0f9a9
etcdctl: update LICENSE header
2016-05-12 20:51:39 -07:00
Anthony Romano
dcb3b7aecf
*: scrub legacy ports from code and scripts
2016-05-11 13:46:30 -07:00
Gyu-Ho Lee
3e088b3b40
etcdctl/ctlv3: make 'table' printer configurable
...
Fix https://github.com/coreos/etcd/issues/5296 .
2016-05-10 10:02:02 -07:00
Ajit Yagaty
adc981c53d
auth: Adding support for "auth disable" command.
...
Added support for the auth disable command in the server, added the
etcdctl command and a respective testcase.
2016-05-07 19:21:49 -07:00
Anthony Romano
b7ac758969
*: rename storage package to mvcc
2016-04-25 15:25:51 -07:00
Gyu-Ho Lee
3ad8e91e00
*: fix flag location, minor typo
2016-04-25 09:41:11 -07:00
Gyu-Ho Lee
53abaf86c6
etcdctl/ctlv3: close bolt.DB in snapshot status
2016-04-22 11:43:52 -07:00
Anthony Romano
d2a58cbb0a
etcdctl: print full json response for Get
...
Otherwise parsing get/txn output with json is somewhat complicated
because in some cases there's a json message and sometimes not.
Likewise, a get on an absent key has to return the current revision for
some algorithms to work.
2016-04-20 09:56:32 -07:00
Xiang Li
bf9cccfc34
Merge pull request #5118 from ajityagaty/fsync_osx
...
fileutil: Sync on HFS/OSX needs to be handled differently.
2016-04-18 22:22:53 -07:00
Ajit Yagaty
8b6de5f85d
fileutil: Sync on HFS/OSX needs to be handled differently.
...
A call file.Sync on OSX doesn't guarantee actual persistence on
physical drive media as the data can be cached in physical drive's
buffers. Hence calls to file.Sync need to be replaced with
fcntl(F_FULLFSYNC).
2016-04-18 21:49:04 -07:00
Gyu-Ho Lee
8a0fa5622e
Merge pull request #5114 from gyuho/snapshot_test
...
*: add Snapshot e2e test
2016-04-18 09:27:07 -07:00
Ajit Yagaty
68dd22d93d
etcdctlv3: Fix for typo in alarm command handling.
2016-04-17 19:31:39 -07:00
Gyu-Ho Lee
a2afb513dd
*: add snapshot e2e test
2016-04-16 13:27:10 -07:00
Gyu-Ho Lee
a78ece4ac2
etcdctl: snapshot status error for non-existent file
2016-04-15 14:15:16 -07:00
Anthony Romano
f07350735d
etcdctl: respect --write-out=json for endpoint status command
2016-04-13 17:04:31 -07:00
Gyu-Ho Lee
e9aa8ff235
Merge pull request #5071 from gyuho/member_api_change
...
*: Member api change
2016-04-13 16:45:10 -07:00
Anthony Romano
3dcfe79cc0
Merge pull request #5070 from heyitsanthony/member-doc
...
etcdctl: display required arguments for member commands in usage
2016-04-13 16:40:16 -07:00
Gyu-Ho Lee
2c6176b5f2
*: remove MemberLeader API in client side (fix examples)
2016-04-13 16:23:57 -07:00
Anthony Romano
90df7fd738
etcdctl: display required arguments for member commands in usage
2016-04-13 16:18:00 -07:00
Anthony Romano
22812badc2
Merge pull request #5069 from heyitsanthony/fix-snapshot-status-json
...
etcdctl: respect -write-out=json for snapshot status
2016-04-13 15:57:39 -07:00
Anthony Romano
b90e30b28e
etcdctl: respect -write-out=json for snapshot status
2016-04-13 13:37:32 -07:00
Anthony Romano
a553ea8ba7
Merge pull request #5068 from heyitsanthony/lease-fixups
...
etcdctl: improve lease command documentation and exit codes
2016-04-13 13:20:06 -07:00
Anthony Romano
993f25f055
Merge pull request #5065 from heyitsanthony/errexit-defrag
...
etcdctl: return non-zero exit code if defrag fails on any endpoint
2016-04-13 13:19:43 -07:00
Anthony Romano
721ed6ba2b
etcdctl: return non-zero exit code if defrag fails on any endpoint
2016-04-13 12:39:43 -07:00
Anthony Romano
855a5116a2
etcdctl: improve lease command documentation and exit codes
2016-04-13 12:38:21 -07:00
Gyu-Ho Lee
60548b85c4
*: add rev flag to get command
2016-04-13 11:32:29 -07:00
Xiang Li
ae9b251d99
etcdctl: move endpoint-heath and status into endpoint command
2016-04-12 16:30:26 -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
e5a2bd58ec
etcdctl: respect --write-out
...
Support got clobbered about a month ago.
2016-04-11 16:01:38 -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
Hitoshi Mitake
2b17a3919c
*: support adding role in auth v3
2016-04-05 09:28:17 +09: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
Xiang Li
87d9f06a45
*: combine etcdctl and etcdctlv3
2016-03-28 11:28:05 -07:00