Sfoglia il codice sorgente

libnetwork/internal/kvstore: remove unused Config options

The only remaining kvstore is BoltDB, which doesn't use TLS connections
or authentication, so we can remove these options.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 anni fa
parent
commit
05988f88b7
1 ha cambiato i file con 0 aggiunte e 13 eliminazioni
  1. 0 13
      libnetwork/internal/kvstore/kvstore.go

+ 0 - 13
libnetwork/internal/kvstore/kvstore.go

@@ -1,7 +1,6 @@
 package kvstore
 package kvstore
 
 
 import (
 import (
-	"crypto/tls"
 	"errors"
 	"errors"
 	"time"
 	"time"
 )
 )
@@ -29,21 +28,9 @@ var (
 
 
 // Config contains the options for a storage client
 // Config contains the options for a storage client
 type Config struct {
 type Config struct {
-	ClientTLS         *ClientTLSConfig
-	TLS               *tls.Config
 	ConnectionTimeout time.Duration
 	ConnectionTimeout time.Duration
 	Bucket            string
 	Bucket            string
 	PersistConnection bool
 	PersistConnection bool
-	Username          string
-	Password          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
 // Store represents the backend K/V storage