Gyu-Ho Lee
fe7379f102
clientv3: add Op.prevKV
2016-10-07 10:51:01 -07:00
Xiang Li
3299cad1c3
*: add put prevkv
2016-10-07 10:39:08 -07:00
Anthony Romano
606d79afc4
clientv3: use failfast and retry wrappers for at-most-once rpcs
2016-08-16 12:12:44 -07:00
Anthony Romano
129b271ff8
clientv3: use grpc.FailFast(false) for all calls
2016-07-14 19:00:46 -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
859e336d68
clientv3: configurable physical in compact
2016-06-27 12:04:04 -07:00
Xiang Li
6496ae005d
clientv3: add withCount support
2016-06-21 21:17:35 -07: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
Anthony Romano
62f8ec25c0
clientv3: use grpc reconnection logic
2016-06-08 01:04:59 -07:00
Gyu-Ho Lee
d116c116fe
clientv3: getRemote comment about release
2016-05-31 12:00:19 -07:00
Anthony Romano
782a8802c0
clientv3: avoid reusing closed connection in KV
2016-05-18 14:46:17 -07:00
Gyu-Ho Lee
86c85b88ad
Merge pull request #5377 from purpleidea/bug/typos
...
clientv3: fix typos
2016-05-17 12:51:13 -07:00
James Shubin
42f3b4964f
clientv3: fix typos
2016-05-17 15:39:56 -04:00
Xiang Li
ec2ac72585
proxy: initial grpc kv service proxy
2016-05-13 23:00:29 -07:00
Gyu-Ho Lee
fd9e07a529
clientv3: update LICENSE header
2016-05-12 20:50:58 -07:00
Anthony Romano
cdc8f99658
clientv3: rework reconnection logic
...
Avoids go routine flood for tight loops with a dead connection.
Now uses request ctx when reconnecting for immediate retry.
2016-05-05 19:30:11 -07:00
Anthony Romano
c26eb3f241
clientv3: better serialization for kv and txn connection retry
...
If the grpc connection is restored between an rpc network failure
and trying to reestablish the connection, the connection retry would
end up resetting good connections if many operations were
in-flight at the time of network failure.
2016-04-29 09:26:32 -07:00
Gyu-Ho Lee
2e3d79a7bf
clientv3: convert errors to rpctypes on returning
...
For https://github.com/coreos/etcd/issues/5211 .
2016-04-28 15:39:37 -07:00
Anthony Romano
2c83362e63
clientv3: fix race in KV reconnection logic
2016-03-28 16:08:18 -07:00
Anthony Romano
bd832e5b0a
*: migrate Godeps to vendor/
2016-03-22 17:10:28 -07:00
Gyu-Ho Lee
f38a611b55
clientv3: set Serializable from Op
...
Fix https://github.com/coreos/etcd/issues/4809 .
2016-03-18 15:56:48 -07:00
Anthony Romano
16c35167df
clientv3: do not reconnect on request context cancellation
2016-03-03 13:43:16 -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
afa0368dcc
*: fix godoc bugs in interfaces and slice fields
...
detected with goword
2016-02-24 00:45:40 -08:00
Hongchao Deng
a19b30b7ab
clientv3: kv.Delete typo
2016-02-23 15:07:10 -08:00
Anthony Romano
6851fffdfb
clientv3: support >= Range requests
...
Turns out grpc will convert an empty byte string to nil, so use "\0" to
indicate Range on >= key in v3 grpc protocol.
2016-02-12 14:06:59 -08:00
Anthony Romano
4854d7f69d
storage: support ranges for >= key
...
If end == "", range(key, end) will give all keys >= key.
2016-02-12 09:45:43 -08:00
Anthony Romano
3c9e8540a7
clientv3: optionize put and delete
2016-02-10 15:03:11 -08:00
Anthony Romano
51c4894f62
clientv3: ctx-ize KV
2016-02-09 17:42:34 -08:00
Anthony Romano
aa9d3c8b74
etcdctlv3: report compaction error, if any
2016-02-08 15:09:03 -08:00
Anthony Romano
8dcd24bd64
clientv3: withOption for Gets
2016-02-08 13:11:55 -08:00
Anthony Romano
b6a08a97e2
clientv3: don't retry txns that may modify the store
2016-02-03 14:55:16 -08:00
Xiang Li
a9bd30b4af
clientv3: do not retry on modifications
2016-02-01 21:54:40 -08:00
Anthony Romano
20461ab11a
*: fix many typos
2016-01-31 21:42:39 -08:00
Anthony Romano
ca9bd575b1
integration: v3 grpc tls tests
2016-01-29 16:38:52 -08:00
Xiang Li
85bfbfa5ad
clientv3: threadsafe
2016-01-28 16:41:09 -08:00
Xiang Li
eb03d48034
clientv3: hook up KV and Txn
2016-01-28 15:15:21 -08:00
Xiang Li
aef77f9829
Merge pull request #4329 from xiang90/client_txn
...
clientv3: initial txn
2016-01-28 14:49:26 -08:00
Xiang Li
92653dcbfb
clientv3: initial txn
2016-01-28 14:27:42 -08:00
Anthony Romano
7cc02bc143
clientv3: fix vet warnings
2016-01-28 13:25:10 -08:00
Xiang Li
2d2f14385d
clientv3: fill in kv ops
2016-01-28 08:17:53 -08:00
Xiang Li
a3b7876a3c
clientv3: use retryConnection
2016-01-27 22:31:15 -08:00
Xiang Li
dba92346f3
etcdclientv3: setup initial structure
2016-01-27 20:36:36 -08:00
Xiang Li
e4dab0f40d
clientv3: add initial kv api for client
2016-01-27 14:05:55 -08:00