Commit Graph

25 Commits (4e759b46ce96d09efcf8fa776b4f4aba36c250bd)

Author SHA1 Message Date
Brian Waldon 4e759b46ce client: use httptypes.MemberCreateRequest in member add 2014-10-29 16:42:14 -07:00
Brian Waldon e457d52f5c client: log incorrect HTTP resp body as string 2014-10-29 16:37:07 -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
Brian Waldon 00dcbf8bf7 client: unexport HTTPKeysAPI 2014-10-25 08:58:25 -07:00
Brian Waldon 73e48068c2 client: add prefix to KeysAPI 2014-10-25 08:58:25 -07:00
Brian Waldon f21d93ba60 client: define DefaultRequestTimeout 2014-10-24 13:28:04 -07:00
Brian Waldon 45d8fbdcda client: move discovery path logic into client pkg 2014-10-24 13:28:04 -07:00
Brian Waldon ce4df96e69 client: break apart KeysAPI from httpClient 2014-10-24 13:27:59 -07:00
Brian Waldon 992e7c76e0 client: copy v2KeysPrefix to httpClient
It's poor form to muck with a global variable. Make a copy when the
httpClient object is instantiated to make httpClient.SetPrefix safe.
2014-10-23 16:31:45 -07:00
Brian Waldon a85a47c8f9 client: s/v2URL/v2KeysURL/ 2014-10-23 16:31:42 -07:00
Brian Waldon ebe32689d4 client: s/v2Prefix/DefaultV2KeysPrefix/ 2014-10-23 16:30:56 -07:00
Jonathan Boulle b3d5333cb3 *: fix various formatting issues 2014-10-20 17:55:18 -07:00
Jonathan Boulle 7a4d42166b *: add license header to all source files 2014-10-17 15:41:22 -07:00
Jonathan Boulle 4183b69e12 *: move from third_party to Godep 2014-10-14 00:37:52 -07:00
Barak Michener ca1bbee737 add logging and backoff and simple retry logic 2014-10-07 16:58:58 -04:00
Xiang Li 9e3d045b2b *:discovery hook up 2014-10-06 10:12:42 -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