Brian Waldon
3b41b77cd7
client: ClientConfig -> Config
2015-02-28 10:22:51 -08:00
Brian Waldon
2aecbaf165
client: unexport httpAction
2015-02-28 10:22:51 -08:00
Brian Waldon
3f5e827e3c
client: httpClient -> simpleHTTPClient
2015-02-28 10:22:51 -08:00
Brian Waldon
f037cb9f65
client: collapse unnecessary constructor
2015-02-28 10:22:50 -08:00
Brian Waldon
62054dfb5e
client: don't cache httpClients in httpClusterClient
2015-02-28 10:22:50 -08:00
Brian Waldon
99d63eb62e
client: protect httpClusterClient with RWMutex
2015-02-28 10:22:50 -08:00
Brian Waldon
0943831b8e
client: establish httpClusterClient.reset
2015-02-28 10:22:50 -08:00
Brian Waldon
74fe28c5e0
client: exchange ClientConfig for SyncableHTTPClient
2015-02-28 10:22:50 -08:00
Brian Waldon
942f0f6b9e
client: accept TTL through KeysAPI.Set
2015-02-28 10:22:50 -08:00
Brian Waldon
3d53e9bfaa
client: pass around options as pointers
2015-02-28 10:22:50 -08:00
Brian Waldon
0a7e0875d5
client: copy DeleteOptions onto deleteAction
2015-02-28 10:19:05 -08:00
Brian Waldon
025ee0379c
client: copy SetOptions onto setAction
2015-02-28 10:19:05 -08:00
Brian Waldon
01fc01ec69
client: KeysAPI.[R]Watch -> Watcher w/ opts struct
2015-02-28 10:19:04 -08:00
Brian Waldon
bc32060b1d
client: support PrevIndex in SetOptions & DeleteOptions
2015-02-28 10:14:25 -08:00
Brian Waldon
7ccf5eb476
client: support PrevValue in SetOptions & DeleteOptions
2015-02-28 10:14:25 -08:00
Brian Waldon
0f31f403d1
client: add KeysAPI.Delete
2015-02-28 10:14:25 -08:00
Brian Waldon
2f479c8721
client: assert method in tests
2015-02-28 10:14:25 -08:00
Brian Waldon
84e495e51e
client: s/assertResponse/assertRequest/
2015-02-28 10:14:25 -08:00
Brian Waldon
6e637f2f75
client: add KeysAPI.Set
2015-02-28 10:14:25 -08:00
Brian Waldon
8b3d05f661
client: add KeysAPI.RGet
2015-02-28 10:14:25 -08:00
Brian Waldon
6d89e6217d
client: rename KeysAPI.RecursiveWatch to RWatch
2015-02-28 10:14:25 -08:00
Brian Waldon
4e5c015fe9
client: add Update method
2015-02-28 10:14:25 -08:00
Brian Waldon
c6d955f4c1
client: drive Create with setAction; drop TTL
2015-02-28 10:12:35 -08:00
Barak Michener
92dca0af0f
*: remove shadowing of variables from etcd and add travis test
...
We've been bitten by this enough times that I wrote a tool so that
it never happens again.
2015-02-17 16:31:42 -05:00
Jonathan Boulle
f1ed69e883
*: switch to line comments for copyright
...
Build tags are not compatible with block comments.
Also adds copyright header to a few places it was missing.
2015-01-26 09:53:30 -08:00
Xiang Li
7171410422
discovery: discovery will try forever when there is a timeout.
...
Perviously, etcd retries three times for timeout error. After this
commit, etcd retries forever. Also this commit make etcd client
aware of gateway timetout.
2014-12-10 23:08:24 -08:00
Veres Lajos
3de2ab2c04
*: typofixes
...
https://github.com/vlajos/misspell_fixer
2014-12-04 22:51:19 +00:00
Brian Waldon
9a728a127a
dep: bump golang.org/x/net/context
...
Move from code.google.com/p/go.net/context to
golang.org/x/net/context before bumping to latest.
2014-11-20 10:19:12 -08:00
Brian Waldon
5f6e536be8
Merge pull request #1639 from bcwaldon/etcdctl-tls
...
Wire up TLS flags for etcdctl
2014-11-07 13:19:36 -08:00
Xiang Li
66572561bf
client: add error handling for addmember
2014-11-06 12:31:24 -08:00
Brian Waldon
4b555dba99
client: add SyncableHTTPClient.Endpoints
2014-11-06 10:54:56 -08:00
Jonathan Boulle
45b7c9a4ac
client: return ErrNoEndpoint when none available
...
In certain cases (for example, if a cluster peer is accessible but it
has no members listed), the httpClusterClient could have an empty set of
endpoints as a result of the Sync. This means that its Do function could
potentially return a nil response and nil error, with catastrophic
consequences for callers.
To be safe (particularly about this latter behaviour), this change
errors in both Sync and Do if no endpoints are available.
2014-11-04 12:51:43 -08:00
Brian Waldon
6dd4944e62
client: follow redirects
2014-11-03 12:15:16 -08:00
Brian Waldon
da6827f09e
client: use all endpoints
2014-10-31 20:51:47 -07:00
Brian Waldon
58af26736c
client: further clarify external interfaces
2014-10-31 20:45:55 -07:00
Brian Waldon
17c6f21d68
client: elevate context to caller of KeysAPI
2014-10-31 17:27:43 -07:00
Brian Waldon
f0760d6246
client: elevate context to caller of MembersAPI
2014-10-31 17:27:42 -07:00
Brian Waldon
913d102a81
client: remove unused field
2014-10-31 17:25:05 -07:00
Brian Waldon
824049897d
client: export necessary interfaces/methods
2014-10-31 17:25:05 -07:00
Brian Waldon
5ed5d018be
client: add httpClusterClient.Sync
2014-10-31 17:25:05 -07:00
Brian Waldon
f6e8b677cf
client: pass httpActionDo into NewMembersAPI
2014-10-31 17:25:05 -07:00
Brian Waldon
0ef270c25c
client: pass httpActionDo into New[Discovery]KeysAPI
2014-10-31 17:25:05 -07:00
Brian Waldon
1130273178
client: s/newHTTPClusterClient/NewHTTPClient/
2014-10-31 17:25:05 -07:00
Brian Waldon
3eb126af4d
client: use httpActionDo in httpClusterClient
2014-10-31 17:25:05 -07:00
Brian Waldon
c282664c23
client: s/transport/CancelableTransport/
...
CancelableTransport is implemented by callers of the
client pkg, so we should export it so it is
documented publicly.
2014-10-31 17:25:04 -07:00
Brian Waldon
d52d836761
client: return full http.Response in httpActionDo
2014-10-31 17:25:04 -07:00
Brian Waldon
eab4692744
client: use v2MembersURL helper
2014-10-31 12:21:15 -07:00
Brian Waldon
8b8b3efdaa
client: accept slice of endpoints
2014-10-31 12:21:15 -07:00
Brian Waldon
8d519ffdb8
client: introduce httpClusterClient
2014-10-31 12:21:15 -07:00
Brian Waldon
323fb1ec85
client: introduce httpActionDo interface
2014-10-31 12:21:15 -07:00