Xiang Li
43221f0b7a
etcdctlv3: implement endpoint-health command
...
endpoint-health checks endpoint.
It can generate 3 outputs:
1. cannot connect to the member through endpoint
2. connected to the member, but member failed to commit any proposals
3. connected to the member, and member committed a proposal
2016-03-22 15:09:50 -07:00
Gyu-Ho Lee
8396da3e83
etcdctlv3: add dial timeout flag
...
Fix https://github.com/coreos/etcd/issues/4836 .
2016-03-22 13:15:26 -07:00
Xiang Li
5a0bb40a41
etcdctlv3: use godep dir for tablewriter dependency
2016-03-21 11:47:55 -07:00
Xiang Li
f59a866fcb
Merge pull request #4795 from xiang90/table
...
etcdctlv3: make member list beautiful
2016-03-17 16:10:35 -07:00
Xiang Li
56d7899c20
etcdctlv3: member list now supports json
2016-03-17 15:54:44 -07:00
Xiang Li
c37cd1f0a1
etcdctlv3: make member list beautiful
2016-03-17 14:49:53 -07:00
Anthony Romano
a001651bc1
clientv3: remove dependency on lease package
2016-03-17 11:52:34 -07:00
Anthony Romano
44753594ec
v3rpc: move errors to v3rpc/rpctypes
...
Fixes #4771
2016-03-17 11:52:34 -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
a24aade667
etcdctlv3: add from-key flag for get command
2016-03-15 12:08:54 -07:00
siddontang
683274b201
etcdctlv3/command: add prefix flag for get
2016-03-15 12:54:13 +08:00
Anthony Romano
4bbbb52892
etcdctlv3: define non-interactive txn format to match interactive input
...
Fixes #4559
2016-03-14 13:36:18 -07:00
Xiang Li
7c377fa703
*: add client.defrag and defrag cmd for etcdctl
2016-03-10 09:30:41 -08:00
Anthony Romano
78132c9b5b
clientv3: use tls.Config in clientv3.Config
...
Fixes #4648
2016-03-07 16:08:40 -08:00
Anthony Romano
360aafec76
clientv3: include a context in Client
...
Useful for clean up tasks
2016-03-04 09:20:44 -08:00
Anthony Romano
1e16758029
clientv3: add Err() to WatchResponse
...
Checking for number of events as a failure condition was a kludge.
2016-03-03 15:21:04 -08:00
Anthony Romano
20d89bcf32
etcdctlv3: elect command
2016-03-03 00:22:19 -08:00
Gyu-Ho Lee
13025679c3
etcdctlv3: use string slice for endpoints
...
This deprecates 'endpoint' flag to enable etcdctl to parse
multi-endpoints flag.
2016-03-02 16:34:58 -08:00
Hitoshi Mitake
b9d77eaaf2
etcdctlv3: a new command auth
...
Currently a stub of subcommand "auth enable" is implemented.
2016-03-02 15:32:35 +09:00
Anthony Romano
f8c3fa637f
clientv3: use default client lease api
2016-02-25 18:13:26 -08:00
Anthony Romano
8f7d474a6b
clientv3: use default client cluster
2016-02-25 18:13:26 -08:00
Anthony Romano
3e57bbf317
clientv3: use default client kv
2016-02-25 18:13:26 -08:00
Anthony Romano
d430c7baf7
clientv3: use default client watcher
2016-02-25 18:13:26 -08:00
Anthony Romano
ed44bb00f8
etcdctlv3: lock command
2016-02-24 17:23:40 -08:00
Anthony Romano
9f569842f0
clientv3: move syncer to mirror package
...
to be in line with sync meaning process synchronization, not data
synchronization
2016-02-24 14:21:41 -08:00
Gyu-Ho Lee
7a7751b994
etcdctlv3: combine Watch, WatchPrefix
2016-02-23 20:02:24 -08:00
Anthony Romano
386c64be7f
etcdctlv3: protobuf formatting
2016-02-23 12:49:37 -08:00
Anthony Romano
355896b00a
etcdctlv3: json formatting
2016-02-23 12:49:37 -08:00
Anthony Romano
8302f839b6
etcdctlv3: add printer interface and simple printer
2016-02-23 09:56:57 -08:00
Xiang Li
a2902c08a9
etcdctlv3: make watch interactive mode better
2016-02-22 23:06:31 -08:00
Anthony Romano
4295d0db8b
etcdctlv3: use "\n" as output line separator
2016-02-22 15:45:56 -08:00
Anthony Romano
b280291f9e
etcdctlv3: use --interactive for interactive mode in watch
2016-02-22 14:38:23 -08:00
Anthony Romano
87dcb2adea
etcdctlv3: unify txn interactive mode input with get/put/delete
2016-02-22 14:38:23 -08:00
Anthony Romano
54d15256e7
etcdctlv3: use clientv3 api for txn command
2016-02-22 09:51:59 -08:00
Xiang Li
13deb32447
etcdctlv3: add doc for mirror maker
2016-02-19 14:18:14 -08:00
Xiang Li
755a022fcf
etcdctlv3: better watch command
2016-02-19 11:42:37 -08:00
Xiang Li
9ea8ed3a13
etcdctlv3: better get command
2016-02-18 14:19:51 -08:00
Xiang Li
917d75f65e
etcdctlv3: make del command better
2016-02-18 12:23:34 -08:00
Xiang Li
535064924c
etcdctlv3: make PUT command clean and documented
2016-02-18 07:46:05 -08:00
Xiang Li
f71e733b8e
etcdctlv3: add mirrormaker
2016-02-16 08:02:17 -08:00
Xiang Li
d78cff2c4a
etcdctlv3: separate out cmd parsing logic for creating client
2016-02-15 14:44:25 -08:00
Xiang Li
24a6abaf59
*: move sync logic to clientv3/sync
2016-02-14 22:52:34 -08:00
Anthony Romano
91e2086d18
etcdctlv3: snapshot command
...
Partially addresses #4097
2016-02-12 14:19:26 -08:00
Xiang Li
b5d5bf625d
etcdctlv3: put should check error
2016-02-11 15:01:33 -08:00
Anthony Romano
51c4894f62
clientv3: ctx-ize KV
2016-02-09 17:42:34 -08:00
Hitoshi Mitake
674d54ad9b
etcdctlv3: handle a case of 0 arguments in put command
2016-02-09 12:22:25 +09:00
Anthony Romano
15c8876e4c
Merge pull request #4455 from heyitsanthony/etcdctlv3-compaction-err
...
etcdctlv3: report compaction error, if any
2016-02-08 19:15:40 -08:00
Hitoshi Mitake
075f5f68ad
etcdctlv3: support reading value from stdin
...
This commit lets etcdctlv3 support reading value from stdin like
`etcdctl set`. It is convenient for storing complex, long value.
2016-02-09 10:54:35 +09:00
Anthony Romano
aa9d3c8b74
etcdctlv3: report compaction error, if any
2016-02-08 15:09:03 -08:00
Hitoshi Mitake
7abd21ee44
etcdctlv3: handle empty options related to security
...
Current etcdctlv3 doesn't handle options related to security when they
are not passed. Connections cannot be established and etcd produces
logs like this:
```
14:09:07 etcd1 | 2016/02/04 14:09:07 transport: http2Server.HandleStreams received bogus greeting from client: "\x16\x03\x01\x00\x9a\x01\x00\x00\x96\x03\x03\xf6\t\xda\x06QV\xb4\xdd\xc1gF\x1cC"
```
This commit fixes the problem. In addition, a case that empty strings
are passed to the options (e.g. --key="") are treated as error.
2016-02-05 13:31:37 +09:00