Brian Waldon
4a77760f56
client: break dependency on httptypes pkg
2015-02-28 10:38:46 -08:00
Brian Waldon
bfbf672ce4
client: document MembersAPI methods
2015-02-28 10:22:52 -08:00
Brian Waldon
7255fb1b62
client: alias etcdserver/etcdhttp/httptypes.Member
2015-02-28 10:22:52 -08:00
Brian Waldon
aee95468ba
client: document MembersAPI/KeysAPI constructors
2015-02-28 10:22:51 -08:00
Brian Waldon
a9f605e5fe
client: unexport defaultV2MembersPrefix
2015-02-28 10:22:51 -08:00
Brian Waldon
3fdda06602
client: s/SyncableHTTPClient/Client/g
2015-02-28 10:22:51 -08:00
Brian Waldon
bac1d2f420
client: unexport httpClient interface
2015-02-28 10:22:51 -08: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
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
Xiang Li
66572561bf
client: add error handling for addmember
2014-11-06 12:31:24 -08:00
Brian Waldon
58af26736c
client: further clarify external interfaces
2014-10-31 20:45:55 -07:00
Brian Waldon
f0760d6246
client: elevate context to caller of MembersAPI
2014-10-31 17:27:42 -07:00
Brian Waldon
824049897d
client: export necessary interfaces/methods
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
1130273178
client: s/newHTTPClusterClient/NewHTTPClient/
2014-10-31 17:25:05 -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
Brian Waldon
9d07db4432
client: move timeout into caller of httpClient
2014-10-31 12:21:15 -07:00
Brian Waldon
7c1f4a9baf
client: explicitly carry API prefix around
2014-10-31 12:21:15 -07:00
Brian Waldon
4e759b46ce
client: use httptypes.MemberCreateRequest in member add
2014-10-29 16:42:14 -07:00
Jonathan Boulle
97c23c4333
client: pass around statuscode instead of Response
...
There's no real need for do and doWithTimeout to return Responses when
the only field of interest is the status code.
This also removes the superfluous httpMembersAPIResponse struct.
2014-10-29 15:47:55 -07:00
Brian Waldon
95231c1278
Merge pull request #1493 from bcwaldon/etcdctl-members
...
etcdctl members [list|add|remove]
2014-10-29 15:44:30 -07:00
Brian Waldon
8b12e1aa37
client: fill in MembersAPI
2014-10-29 15:03:22 -07:00
Brian Waldon
ab67fa4cc6
api: remove admin prefix from members API
2014-10-29 12:12:51 -07:00
Brian Waldon
80ca168cbe
client: simplify MembersAPI response parsing
2014-10-27 11:22:47 -07:00
Brian Waldon
14795d8ed9
httptypes: use MemberCollection for JSON (de)serialization
2014-10-27 11:22:47 -07:00
Brian Waldon
54a2d8ffc9
client: move Member models to new types pkg
2014-10-27 11:22:46 -07:00
Brian Waldon
cba19e348f
client: MembersAPI.List
2014-10-25 11:30:15 -07:00