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
Quentin Perez
86aafcd15a
clientv3/integration: fix args format in Errorf/Printf
2016-02-03 22:17:58 +01:00
Xiang Li
f2c24dec05
clientv3: initial lease
2016-02-01 09:55:32 -08:00
Anthony Romano
781bf625af
etcdctlv3: support tls
...
Fixes #4299
2016-01-29 16:37:59 -08:00
Anthony Romano
9a5a3ebc79
etcdctlv3: consolidate dial code; use clientv3
2016-01-27 12:13:17 -08:00
Gyu-Ho Lee
fa21946267
*: pass WithInsecure to grpc.Dial for now
...
Related to https://github.com/coreos/etcd/issues/4299 .
2016-01-27 00:24:03 -08:00
Xiang Li
36cc8446c7
*: finish member api implementation
2016-01-26 18:09:14 -08:00
Gyu-Ho Lee
1145414a08
etcdctlv3: update gRPC, proto interface
2016-01-26 17:41:23 -08:00
Gyu-Ho Lee
b6077f9d57
*: fix minor typos
2016-01-14 01:28:29 -08: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
Anthony Romano
82eeffbd58
etcdserver: support sorted range requests in v3 api
...
Fixes #4166
2016-01-12 10:08:30 -08:00
Xiang Li
59bf83c7f4
*: now lease keepAlive works on leader
2016-01-09 22:12:02 -08:00