diff --git a/libnetwork/internal/kvstore/kvstore.go b/libnetwork/internal/kvstore/kvstore.go index 352edaa56a..108242bd5c 100644 --- a/libnetwork/internal/kvstore/kvstore.go +++ b/libnetwork/internal/kvstore/kvstore.go @@ -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 +} + // 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