42 Commits

Author SHA1 Message Date
Xiang Li
40d297be66 feat add dir_flag 2013-12-05 17:10:37 -05:00
Ben Johnson
5d865e321c Merge branch 'master' of https://github.com/coreos/etcd into mod-lock
Conflicts:
	server/v2/tests/delete_handler_test.go
	server/v2/tests/get_handler_test.go
	server/v2/tests/post_handler_test.go
	server/v2/tests/put_handler_test.go
	third_party/github.com/coreos/go-etcd/etcd/requests.go
2013-12-04 22:36:53 -07:00
Brandon Philips
72bf216cb4 fix(server/v2): redirect to ClientURL not PeerURL
If consistent is set you must redirect the client to the leader's
ClientURL not the PeerURL.
2013-12-02 18:20:11 -08:00
Ben Johnson
df20be775c Fix test harness. 2013-12-02 15:43:37 -07:00
Ben Johnson
22c2935ddb Initial mod_lock acquire. 2013-11-27 16:59:05 -07:00
Xiang Li
b4f3d02c1c Merge pull request #322 from xiangli-cmu/master
bump deps
2013-11-22 14:18:17 -08:00
Xiang Li
8a0496cfae bump deps 2013-11-22 08:59:24 -08:00
Brandon Philips
a1ec895b91 feat(server): introduce a cors handler
Introduce a handler that lives under the gorilla mux and adds the
correct headers based on the request and always returns 200 OK when
there OPTIONS is called on a URL.

This fixes the ability to DELETE from the dashboard on peer X when peer
Y is the leader. As a side effect it reveals some bugs in the dashboard
though notably:

- Due to the RTT immediatly refreshing the dashboard doesn't work and
  deleted keys are still there

- For some reason PUTS from peer X are creating directories and not
  keys.
2013-11-21 09:25:21 -08:00
Ben Johnson
15eee885d7 Merge branch 'master' of https://github.com/coreos/etcd into clean-up-config 2013-11-19 10:13:39 -07:00
Xiang Li
1d34c82643 fix set content-type to application/json 2013-11-16 20:48:44 -08:00
Ben Johnson
cba2611c68 Renamed configuration parameters. 2013-11-15 00:13:32 -05:00
Brandon Philips
ca7e61052d refactor(mod): remove the /etcd/ prefix
Originally we were going to move all of the API endpoints to /etcd/ so
that you could move etcd traffic over a multiplexed HTTP proxy with
other service but since we don't have a strong use case for this just
remove this for now.
2013-11-13 06:15:35 -08:00
Xiang Li
5abbaf59e3 Merge pull request #292 from xiangli-cmu/fix-ttl
WIP: fix ttl
2013-11-11 21:30:32 -08:00
Xiang Li
d8e5994c35 feat attach etcd-index,raft-index,raft-term to header 2013-11-09 20:20:47 -08:00
Xiang Li
6156d5c790 refactor separate etcd index from raft index 2013-11-09 17:55:54 -08:00
Brandon Philips
5620f88635 feat(server): insert the mod path 2013-11-08 16:59:30 -08:00
Xiang Li
f3ce75f2b4 feat add a simple speed test 2013-11-02 22:05:44 -07:00
Ben Johnson
aa9ae32998 Internal versioning. 2013-10-27 14:09:40 -06:00
Ben Johnson
bc0e07bca2 Add tiered configuration. 2013-10-21 21:37:25 -06:00
Xiang Li
b852a746ce refactor move http status logic to server.go 2013-10-20 10:21:54 -07:00
Xiang Li
acbc0c8846 refactor return http status 201 Created when creating a new node 2013-10-19 19:57:36 -07:00
Ben Johnson
dcef04b796 Add v2 unit tests. 2013-10-17 21:52:15 -06:00
Brandon Philips
7670c85d70 feat(server): export ReleaseVersion
releaseVersion is needed in etcd.go to print it out in the -version
flag.
2013-10-16 17:29:53 -07:00
Xiang Li
53a9bd0618 feat add set command 2013-10-14 22:44:17 -07:00
Xiang Li
2aeb25e80c refactor change handler name to its method 2013-10-14 22:38:07 -07:00
Xiang Li
545f8ed6a1 fix update PUT handler 2013-10-14 22:22:23 -07:00
Ben Johnson
e7598075ac Use raft.Server interface. 2013-10-14 13:51:20 -06:00
Ben Johnson
1321c63f3b Extract Store into an interface. 2013-10-14 11:12:30 -06:00
Xiang Li
ef74464aea refactor remove extra function 2013-10-13 23:09:52 -07:00
Xiang Li
7565313290 refactor add wrapper function 2013-10-13 22:20:23 -07:00
Xiang Li
a635f6b17c refactor remove the extra function 2013-10-13 22:13:20 -07:00
Ben Johnson
d44fd6661a Fix registry cache issues. 2013-10-13 21:09:56 -06:00
Ben Johnson
013d07bc2a Fix server dispatch redirection. 2013-10-13 16:58:36 -06:00
Xiang Li
0c5808eeec fix server/server.go accept name when creating a when server; gofmt 2013-10-13 10:44:40 -07:00
Ben Johnson
d3b064c2e9 Refactor v2 routes. 2013-10-13 00:29:58 -06:00
Ben Johnson
7416d2fdcc Mostly working. 2013-10-12 23:39:34 -06:00
Ben Johnson
8670e1b7aa Refactored. 2013-10-12 15:56:43 -06:00
Ben Johnson
bb9401544a Intermediate commit. 2013-10-12 13:35:23 -06:00
Ben Johnson
eb78d96a20 Intermediate commit. 2013-10-12 00:28:46 -06:00
Ben Johnson
89334df5ae Refactor commands. 2013-10-11 01:02:38 -06:00
Ben Johnson
594c2cab47 Refactor v2 API into server/v2. 2013-10-11 00:07:22 -06:00
Ben Johnson
a113a51d73 Refactor v1 API into server/v1. 2013-10-10 22:42:45 -06:00