Xiang Li
5fa8652241
client: return cluster error if the etcd cluster is not avaliable
...
Add a new ClusterError type. It contians all encountered errors and
return ClusterNotAvailable as the error string.
2015-07-29 22:55:15 +08:00
Yicheng Qin
ea2347a40f
client: pin itself to an endpoint that given
...
1. When reset endpoints, client will choose a random endpoint to pin.
2. If the pinned endpoint is healthy, client will keep using it.
3. If the pinned endpoint becomes unhealthy, client will attempt other
endpoints and update its pin.
2015-07-27 13:36:53 -07:00
Barak Michener
a4d1a5a6e5
*: Add security/auth support to etcdctl and etcd/client
...
add godep for speakeasy and auth entry parsing
add security_user to client
add role to client
add role commands
add auth support to etcdclient and etcdctl(member/user)
add enable/disable to etcdctl
better error messages, read/write/readwrite
Bump go-etcd to include codec changes, add new dependency
verify the error for revoke/add if nothing changed, remove security-merging prefix
2015-06-10 16:58:10 -04:00
Xiang Li
15ac4f08f8
client: fix cancel watch
...
ioutil.ReadAll is a blocking call, we need to wait cancelation
during the call.
2015-06-05 15:40:43 -07:00
Xiang Li
4f2df84a38
client: support printing cURL command
2015-06-03 10:02:37 -07:00
Alex Crawford
d9ad6aa2a9
*: update to use IANA-assigned ports
2015-04-06 13:49:43 -07:00
Brian Waldon
9fe78c8bc4
client: don't use nested actions
2015-02-28 10:45:21 -08:00
Brian Waldon
25cf916a80
client: ensure Response closed on cancel
2015-02-28 10:45:21 -08:00
Brian Waldon
b41d6bc416
client: set hard limit on redirect checks
2015-02-28 10:45:21 -08:00
Brian Waldon
50a9b2d9c8
client: rm naked return from httpClusterClient.Do
2015-02-28 10:45:21 -08:00
Brian Waldon
ae062a0825
client: move lock so MembersAPI.List doesn't deadlock
2015-02-28 10:45:21 -08:00
Brian Waldon
b174732812
client: introduce Error type
2015-02-28 10:38:47 -08:00
Brian Waldon
9b334e07a6
client: allow caller to decide HTTP redirect policy
2015-02-28 10:38:46 -08:00
Brian Waldon
8621caf3e2
client: define a DefaultTransport
2015-02-28 10:22:52 -08:00
Brian Waldon
ce4486ff85
client: document Client methods
2015-02-28 10:22:52 -08:00
Brian Waldon
1773d0a18b
client: simplify CancelableTransport doc
2015-02-28 10:22:52 -08:00
Brian Waldon
19dd4a0f3c
client: document Config
2015-02-28 10:22:52 -08:00
Brian Waldon
6d82472275
client: move http.go into client.go
2015-02-28 10:22:52 -08:00
Brian Waldon
7ff84351f5
client: centralize exported variables
2015-02-28 10:22:51 -08:00
Brian Waldon
ce4df96e69
client: break apart KeysAPI from httpClient
2014-10-24 13:27:59 -07:00
Jonathan Boulle
7a4d42166b
*: add license header to all source files
2014-10-17 15:41:22 -07:00
Xiang Li
2b623cf0fa
discovery: init commit
2014-09-22 19:51:31 -07:00
Brian Waldon
49cc76d33b
client: min client for discovery
2014-09-21 10:29:52 -07:00