Anthony Romano
e026b79c87
clientv3/integration: do not remove client member in TestMemberRemove
...
Fixes #4716
2016-03-08 11:55:26 -08:00
Anthony Romano
78132c9b5b
clientv3: use tls.Config in clientv3.Config
...
Fixes #4648
2016-03-07 16:08:40 -08:00
Anthony Romano
4eeea5ccda
clientv3/integration: remove invalid future revision test
...
Future revisions are now supported, so test is outdated.
2016-03-07 15:52:34 -08:00
Anthony Romano
d21d2e6624
clientv3: don't deadlock on Close with broken connection
...
Fixes #4679
2016-03-07 13:46:54 -08:00
Xiang Li
d84811aecf
*: fix watch full key range
2016-03-05 14:45:43 -08:00
Xiang Li
e708bc14d7
Merge pull request #4689 from hongchaodeng/master
...
watch.go: docs on WatchResponse.Canceled
2016-03-04 16:09:16 -08:00
Hongchao Deng
5e017e94f9
watch.go: docs on WatchResponse.Canceled
2016-03-04 15:51:00 -08:00
Gyu-Ho Lee
450b586011
clientv3: add IsProgressNotify with example
...
This makes the test endpoints same as we have in
goreman proc file, and adds 'IsProgressNotify' method
and the 'WatchProgressNotify' code example to godoc.
2016-03-04 12:16:43 -08:00
Gyu-Ho Lee
4097a72c0b
Merge pull request #4678 from gyuho/watch_notify_clientv3
...
clientv3: add WithProgressNotify
2016-03-04 10:08:25 -08:00
Gyu-Ho Lee
27316196d8
clientv3: add WithProgressNotify
...
Client side for https://github.com/coreos/etcd/issues/4628 .
2016-03-04 09:47:13 -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
3cda514edb
Merge pull request #4676 from heyitsanthony/clientv3-fix-cancel-retry
...
clientv3: do not reconnect if request context is canceled
2016-03-03 14:24:50 -08:00
Anthony Romano
16c35167df
clientv3: do not reconnect on request context cancellation
2016-03-03 13:43:16 -08:00
Anthony Romano
6d3f172c6e
clientv3/concurrency: don't poll in mutex lock on early prior key delete
...
Lock would get the prior key on retry using WithRev(myRev - 1) instead of
using the latest revision; the Watch() would return immediately and Lock
devolves into polling.
2016-03-03 10:04:57 -08:00
Anthony Romano
3327858a54
clientv3/concurrency: move election recipe into clientv3
2016-03-03 00:22:19 -08:00
Hitoshi Mitake
379d04ea53
clientv3: a new interface Auth for auth related RPCs
2016-03-02 15:17:59 +09:00
Anthony Romano
3a9d532140
Merge pull request #4614 from heyitsanthony/future-watch-rpc
...
etcdserver, storage, clientv3: watcher ranges
2016-02-29 15:59:18 -08:00
Gyu-Ho Lee
4bf3756aa8
clientv3: document error handling in README
2016-02-29 15:41:52 -08:00
Anthony Romano
eb327c690b
clientv3: support watcher ranges
2016-02-29 15:20:41 -08:00
Anthony Romano
8dbc6cfd43
etcdserver: ranges in watcher rpc protocol
...
protocol change so watch requests are ranges; server rejects non-prefix ranges
2016-02-29 14:03:27 -08:00
Gyu-Ho Lee
a857d8e27c
clientv3: document error handling
2016-02-29 13:54:35 -08:00
Anthony Romano
4fb25d5f0e
Merge pull request #4613 from heyitsanthony/clientv3-composite
...
clientv3: compose API interfaces into client struct
2016-02-29 11:23:34 -08:00
Anthony Romano
d02b1c982f
clientv3: return closed channel on Watch() cancel
...
was returning nil; difficult to use correctly
Fixes #4626
2016-02-26 12:16:41 -08: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
5f62c05a6d
clientv3: compose all clientv3 APIs into client struct
2016-02-25 18:13:26 -08:00
Anthony Romano
bfcd39335c
Merge pull request #4619 from heyitsanthony/clientv3-do
...
clientv3: expose Do in KV
2016-02-25 18:11:29 -08:00
Anthony Romano
43689b9a32
clientv3: expose Do in KV
...
Do() makes it possible to pass Ops around and apply them later.
Txn().Then(op).Commit() isn't enough because it will wrap the op
in a txn. Likewise, rewriting single op txns into single op rpc's
precludes deliberately submitting a single op transaction.
2016-02-25 17:33:47 -08:00
Anthony Romano
993fd76b19
clientv3: respect first stream error in lease recv loop
...
Fixes #4622
2016-02-25 16:59:08 -08:00
Gyu-Ho Lee
81f77ee4f3
clientv3: fix txn example code
2016-02-25 10:52:47 -08:00
Gyu-Ho Lee
8f3981c651
Merge pull request #4612 from gyuho/watch_not_panic
...
*: watch true cancel, created for wrong rev
2016-02-24 22:07:03 -07:00
Gyu-Ho Lee
a78604dacb
*: watch true cancel, created for wrong rev
...
This sets Created and Cancel true in pb.WatchResponse
when it has received wrong start revision instead of
panic. So that clientv3 can set 'Canceled' in WatchResponse
as well.
Fix https://github.com/coreos/etcd/issues/4610 .
2016-02-24 20:56:17 -08:00
Anthony Romano
ed44bb00f8
etcdctlv3: lock command
2016-02-24 17:23:40 -08:00
Anthony Romano
d4b2044eb1
clientv3/concurrency: Mutex
2016-02-24 17:23:40 -08:00
Anthony Romano
20b4336cdb
clientv3/concurrency: Session
...
A client may bind itself to a session lease to signal its
continued in participation with the cluster.
2016-02-24 16:40:16 -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
Anthony Romano
afa0368dcc
*: fix godoc bugs in interfaces and slice fields
...
detected with goword
2016-02-24 00:45:40 -08:00
Gyu-Ho Lee
8f7948641c
contrib/recipes: replace WatchPrefix with Watch
2016-02-23 20:02:24 -08:00
Gyu-Ho Lee
a24d276891
clientv3: combine Watch, WatchPrefix with variadic
...
For https://github.com/coreos/etcd/issues/4598 .
2016-02-23 20:02:21 -08:00
Gyu-Ho Lee
53f94c22b3
Merge pull request #4600 from gyuho/opoption_doc
...
clientv3: add GoDoc to OpOption
2016-02-23 15:36:38 -08:00
Gyu-Ho Lee
5bc08b7475
clientv3: add GoDoc to OpOption
2016-02-23 15:18:33 -08:00
Hongchao Deng
a19b30b7ab
clientv3: kv.Delete typo
2016-02-23 15:07:10 -08:00
Gyu-Ho Lee
72a1e5618b
clientv3: add more code examples
2016-02-23 14:05:36 -08:00
Gyu-Ho Lee
f0686189e5
clientv3: README, GoDoc examples
2016-02-22 14:21:36 -08:00
Anthony Romano
c5b51946eb
*: exported godoc fixups
2016-02-21 20:36:44 -08:00
Anthony Romano
50ad181477
clientv3: support context cancellation on lease keep alives
2016-02-20 23:21:15 -08:00
Anthony Romano
7b82576b60
clientv3: copy correct pointers into txn comparisons
...
Was copying the range variable's pointer; all elements of cmp were the same.
2016-02-20 22:01:33 -08:00