Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() configsource.Factory
NewFactory creates a new etcd2Factory instance
Types ¶
type Authentication ¶
type Authentication struct { // Username can be optionally used to authenticate with etcd2 cluster. Username string `mapstructure:"username"` // Password can be optionally used to authenticate with etcd2 cluster. Password string `mapstructure:"password"` }
Authentication holds the authentication configuration for Etcd2 config source objects.
type Config ¶
type Config struct { configsource.SourceSettings `mapstructure:",squash"` // squash ensures fields are correctly decoded in embedded struct // Authentication defines the authentication method to be used. Authentication *Authentication `mapstructure:"auth"` // Endpoints is a list of etcd2 server endpoints the etcd2 // config source should try to connect to. Endpoints []string `mapstructure:"endpoints"` }
Config defines etcd2configsource configuration
Click to show internal directories.
Click to hide internal directories.