155 Commits

Author SHA1 Message Date
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
Xiang Li
40c520ca1b refactor remove raft singleton 2013-10-10 15:40:05 -07:00
Xiang Li
784d286f37 merge from master 2013-09-28 16:58:57 -07:00
Xiang Li
da83ee223b clean up from yifan 2013-09-28 16:26:19 -07:00
Xiang Li
1caf2a3364 remove old store 2013-09-15 22:28:42 -04:00
Xiang Li
2d7c1be164 merge 2013-09-14 15:22:37 -04:00
Xiang Li
3ff100321c use new store system 2013-09-14 15:13:33 -04:00
Xiang Li
44e8c234ed merge master 2013-09-07 14:47:55 -04:00
Brandon Philips
2f5015552e feat(etcd_handlers): enable CORS
When developing or using web frontends for etcd it will be necessary to
enable Cross-Origin Resource Sharing. Add a flag that lets the user
enable this feature via a whitelist.
2013-09-03 15:12:46 -07:00
Xiang Li
329f8c4fa3 init filesystem 2013-09-03 14:30:42 -04:00
Brandon Philips
bfeed190ea feat(etcd): Default server listen and client listen to advertised IPs
Map the advertised IP to the listening IP by default. This will make
things nicer for the user.
2013-08-31 22:28:25 -07:00
Brandon Philips
351e84aece feat(etcd): add listen host parameter
this separates out the listening IP from the advertised IP. This is
necessary so that we can hit etcd on 127.0.0.1 but also advertise the
right IP to the rest of the cluster.
2013-08-23 13:07:15 -07:00
Xiang Li
a97590ff50 basic stats 2013-08-19 17:19:45 -07:00
Xiang Li
e50871cc36 remove unused struct 2013-08-17 08:30:32 -07:00
Fabrizio (Misto) Milo
c459b4bda7 go flavour 2013-08-17 08:30:31 -07:00
Xiang Li
981351c9d9 use type inheritance 2013-08-17 08:30:31 -07:00
Xiang Li
ca4b5815f7 make raft and etcd server 2013-08-17 08:30:31 -07:00
Xiang Li
9240258dc9 use var() 2013-08-17 08:30:31 -07:00
Xiang Li
cb33641f5f clean up 2013-08-17 08:30:30 -07:00
Xiang Li
915266d5f5 move tslconf to conf.go 2013-08-13 12:28:50 -07:00
Xiang Li
3940196de0 move trans related func to trans.go 2013-08-13 12:23:35 -07:00
Xiang Li
f7dc48ad00 gofmt 2013-08-13 12:17:33 -07:00
Xiang Li
b71811375b fix race 2013-08-13 12:17:19 -07:00
Fabrizio (Misto) Milo
82fe001c65 move etcdMux to etcd_handlers.go (better proximity code) 2013-08-13 11:52:55 -07:00
Fabrizio (Misto) Milo
0aebf3757d use check utl 2013-08-13 11:52:55 -07:00
Fabrizio (Misto) Milo
6299f316f1 use check util 2013-08-13 11:52:55 -07:00
Fabrizio (Misto) Milo
3102420542 use infof instead of fmt.Printf 2013-08-13 11:52:55 -07:00
Fabrizio (Misto) Milo
e7d15b6488 split config 2013-08-13 11:52:55 -07:00
Fabrizio (Misto) Milo
339d8b435d move to util 2013-08-13 11:52:55 -07:00
Fabrizio (Misto) Milo
e6d8d4046d split raft server logic into separate module 2013-08-13 11:52:55 -07:00
Fabrizio (Misto) Milo
ddc53c6584 use filepath 2013-08-12 17:18:05 -07:00
Xiang Li
21c658b151 Merge pull request #86 from xiangli-cmu/master
Change snapshot to clientside
2013-08-12 10:46:34 -07:00
Brandon Philips
5a88da1d37 fix(etcd): add a default name
etcd shouldn't require flags by default.
2013-08-11 13:28:53 -07:00
Xiang Li
8e48a20c85 clean up trans.go 2013-08-11 11:56:18 -07:00
Brandon Philips
be85442e5e fix(etcd): remove insecureskipverify
The client certs and server certs should share the same CA since
everyone is a peer. Use this logic instead of InsecureSkipVerify.

Test-plan: tested manually and tests pass still.
2013-08-11 10:36:34 -07:00
Xiang Li
1124fe21a0 cleaning up 2013-08-11 10:18:40 -07:00
Xiang Li
d3649d3254 gofmt 2013-08-11 09:48:12 -07:00
Xiang Li
434b0045db add snapshot 2013-08-11 09:47:23 -07:00
Xiang Li
0e1125666f better naming in join 2013-08-11 00:42:46 -07:00
Brandon Philips
466229cf4d fix(etcd): reverse the cert handling
the server tls config needs the client CA information and the client
needs the pub/priv key. This is how this code used to work.
2013-08-10 23:33:40 -07:00
Brandon Philips
3be13a38f1 fix(etcd): use transporter scheme in joinCluster
Follow the transporter scheme when trying to join the cluster. Otherwise
the scheme is empty and the http client errors.
2013-08-10 21:35:22 -07:00
Brandon Philips
7db07aa96a fix(etcd): fatal when err != nil
stupid typo, fix
2013-08-10 21:09:46 -07:00
Brandon Philips
eb8f1dc6eb fix(etcd): fixup TLSInfo json
the JSON wasn't getting generated properly. Fix it up.
2013-08-10 19:52:29 -07:00
Brandon Philips
8c09f98882 chore(etcd): cleanup TLS configuration
the TLS configuration was getting rather complex with slices of
tls.Config's being passed around and pointer nil checking for schema
types.

Introduce a new TLSInfo type that is in charge of holding the various
TLS key/cert/CA filenames the user passes in.

Then create a new TlsConfig type that has a Scheme and the Client and
Server tls.Config objects inside of it. This is used by the two
transport start methods which had been using a slice of tls.Config
objects and guessing at the scheme based on the non-nil value of the
Config.
2013-08-10 19:31:54 -07:00