2627 Commits

Author SHA1 Message Date
Jonathan Boulle
20776f1947 etcdserver: use int64slice directly 2014-09-11 19:17:07 -07:00
Jonathan Boulle
e18b8c12be etcdserver: switch to proper int64Slice for sorting 2014-09-11 17:28:08 -07:00
Jonathan Boulle
5f66b35852 etcdserver/etcdhttp: split out peers and add tests 2014-09-11 16:53:55 -07:00
Jonathan Boulle
c03798f99b Merge pull request #1011 from jonboulle/clean_http
Validate HTTP API user input
2014-09-11 15:31:25 -07:00
Jonathan Boulle
786982d8e5 simplify 2014-09-11 15:13:56 -07:00
Jonathan Boulle
52ddd389ff etcdhttp: use Form values over query parameters 2014-09-11 15:12:31 -07:00
Brandon Philips
40341b488c Merge pull request #1058 from philips/grammar-fix
raft: log comment grammar fix
2014-09-11 14:06:33 -07:00
Brandon Philips
3bc4b2db12 raft: log comment grammar fix 2014-09-11 13:59:50 -07:00
Xiang Li
f7f65ec464 Merge pull request #1056 from coreos/test
test: test wait pkg
2014-09-11 13:56:51 -07:00
Xiang Li
9bd9d88a9d test: sort the pkgs 2014-09-11 12:48:18 -07:00
Xiang Li
0feb153034 test: test wait pkg 2014-09-11 12:38:43 -07:00
Jonathan Boulle
7c03704b19 etcdserver: restructure to hopefully simplify
Obviate parseBool helper, define emptyReq locally to parseRequest,
have writeEvent return an error which gets logged
2014-09-11 08:50:41 -07:00
Brandon Philips
71a1c1aa84 Merge pull request #1053 from philips/proxy-in-procfile
Procfile: add a proxy
2014-09-10 18:47:53 -07:00
Brandon Philips
1ee8392a8f Procfile: add a proxy
Woo! Now we have a cluster and a proxy and etcdctl works when running
the procfile by default!
2014-09-10 18:47:32 -07:00
Xiang Li
338ca6050e Merge pull request #1048 from bcwaldon/proxy-monster
proxy mode
2014-09-10 18:09:50 -07:00
Brian Waldon
7415d53020 proxy: add proxy-mode functionality to etcd daemon 2014-09-10 18:06:56 -07:00
Brian Waldon
e5a482266f proxy: introduce director
The director class drives an httputil.ReverseProxy. This is used when
etcd is deployed in proxy mode.
2014-09-10 18:04:03 -07:00
Brian Waldon
a3334eed23 main: break out startEtcd func 2014-09-10 18:04:02 -07:00
Brian Waldon
bafe960dba etcdhttp: add Peers.Endpoints 2014-09-10 18:02:02 -07:00
Brian Waldon
2b39ee1bb3 Merge pull request #1051 from bcwaldon/Id
*: s/Id/ID/
2014-09-10 16:13:04 -07:00
Brian Waldon
c251304068 *: s/Id/ID/
golang convention dictates that the individual characters in an
abbreviation should all have the same case. Use ID instead of Id.

The protobuf generator still generates code that does not meet
this convention, but that's a fight for another day.
2014-09-10 16:09:08 -07:00
Jonathan Boulle
e2d01eff35 etcdserver: switch to using etcd.Error 2014-09-10 15:46:13 -07:00
Xiang Li
21c214ac03 Merge pull request #1050 from jonboulle/ignore
gitignore: ignore vim swap files
2014-09-10 15:09:45 -07:00
Jonathan Boulle
2342402434 etcdserver: address style comments 2014-09-10 14:14:14 -07:00
Jonathan Boulle
255e62dcdd gitignore: ignore vim swap files 2014-09-10 12:06:28 -07:00
Jonathan Boulle
bed63cddf7 etcdhttp: add tests for ParseBool/ParseUint64 helpers 2014-09-10 12:05:36 -07:00
Jonathan Boulle
e736a11ac4 etcdhttp: perform validation of query parameters
Add basic input validation of all query parameters supported by
serveKeys. Also restructures etcdhttp a bit to better facilitate
testing.

Test coverage is slightly improved.
2014-09-10 12:01:58 -07:00
Xiang Li
3d272c2686 Merge pull request #1044 from unihorn/119
http: check err return from http.NewRequest
2014-09-09 20:48:56 -07:00
Yicheng Qin
51e4bbfeb0 http: check err return from http.NewRequest 2014-09-09 20:46:56 -07:00
Brandon Philips
bac88c047b Merge pull request #1039 from philips/Procfile-note
Procfile: add a comment on how to use this
2014-09-09 16:49:08 -07:00
Brandon Philips
a9c288aadc Procfile: add a comment on how to use this 2014-09-09 16:48:25 -07:00
Xiang Li
70443adc8d Merge pull request #1038 from philips/vegan-etcd
*: stop using 0xBEEF
2014-09-09 16:43:54 -07:00
Brandon Philips
24fd126822 *: stop using 0xBEEF
Using 0xBEEF is annoying in examples because it makes it makes it look
like the user can use ascii or something. In the Procfile use
0x0,0x1,0x2,etc and use 0xBAD0 in test.
2014-09-09 16:40:51 -07:00
Xiang Li
d9b35470a1 Merge pull request #1023 from unihorn/117
etcdhttp: add /v2/admin/machines endpoint
2014-09-09 16:23:23 -07:00
Yicheng Qin
01871e7c29 http: use sort.Strings 2014-09-09 16:20:02 -07:00
Xiang Li
68aa114301 Merge pull request #1035 from coreos/no_copy
raft: do not need to copy committed entries
2014-09-09 16:07:20 -07:00
Yicheng Qin
d519491545 http: add TODO for peers var 2014-09-09 15:55:42 -07:00
Xiang Li
7ac3afc02b Merge pull request #1037 from jonboulle/travis
build: add travis configuration
2014-09-09 15:50:21 -07:00
Yicheng Qin
961a61d708 http: add allow func
For further extendability
2014-09-09 15:45:34 -07:00
Jonathan Boulle
0241b8ba9a build: add travis configuration 2014-09-09 15:44:41 -07:00
Yicheng Qin
4087fa5c7a http: allow GET, HEAD for /v2/machines 2014-09-09 15:22:52 -07:00
Yicheng Qin
0c1d1b7aeb etcdhttp: add /v2/machines endpoint 2014-09-09 15:00:29 -07:00
Xiang Li
b8f2db36dd Merge pull request #1036 from philips/gitignore-etcd-data
gitignore: add _etcd_data directory ignores
2014-09-09 14:30:38 -07:00
Brandon Philips
6b647fd481 gitignore: add _etcd_data directory ignores
After 9a57d1067d8613cd5aa8bd6e00b7522553784770 we want to ignore all of
these _etcd_data directories.
2014-09-09 14:30:09 -07:00
Brandon Philips
e5cc58c179 Merge pull request #1032 from jonboulle/fix_tests
scripts: use bash for build script
2014-09-09 14:21:51 -07:00
Xiang Li
eaffaacf5e raft: do not need to copy committed entries 2014-09-09 14:09:30 -07:00
Xiang Li
1a677164be Merge pull request #1026 from coreos/fix_node
Fix node
2014-09-09 13:41:38 -07:00
Xiang Li
a5e72258d2 Merge pull request #1029 from jonboulle/docker
scripts: remove non-functional Dockerfile
2014-09-09 12:15:23 -07:00
Xiang Li
f7baea7406 Merge pull request #1017 from jonboulle/api_tests
HTTP API test coverage, pt 1
2014-09-09 12:12:56 -07:00
Xiang Li
676b5be972 raft: use IsEmptyState 2014-09-09 11:58:15 -07:00