Add etcd TLS client code and update README.md.

Signed-off-by: Adam Thornton <adam.thornton@gonkulator.io>
This commit is contained in:
Adam Thornton 2015-08-19 10:33:38 -05:00 committed by Alexandre Beslic
parent 81a45f92c5
commit cc9e627f8e

View file

@ -39,11 +39,20 @@ var (
// Config contains the options for a storage client
type Config struct {
ClientTLS *ClientTLSConfig
TLS *tls.Config
ConnectionTimeout time.Duration
Bucket string
}
// ClientTLSConfig contains data for a Client TLS configuration in the form
// the etcd client wants it. Eventually we'll adapt it for ZK and Consul.
type ClientTLSConfig struct {
CertFile string
KeyFile string
CACertFile string // Really should be []string, but etcd...
}
// Store represents the backend K/V storage
// Each store should support every call listed
// here. Or it couldn't be implemented as a K/V