Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownAPILevel = errors.New("unknown etcd api level - must be 2 or 3")
ErrUnknownAPILevel is returned if no valid api level is given
Functions ¶
Types ¶
type BasicAuthOptions ¶
BasicAuthOptions contains options regarding to basic authentication.
type Option ¶
type Option func(*Options)
Option configures the etcd client.
func WithBasicAuth ¶
func WithBasicAuth(b BasicAuthOptions) Option
WithBasicAuth enables the basic authentication and sets the username and password.
func WithTLSOptions ¶
func WithTLSOptions(tls TLSOptions) Option
WithTLSOptions sets the TLSOptions.
func WithVersion ¶
WithVersion sets the etcd api level. Valid levels are 2 and 3.
type Options ¶
type Options struct { Nodes []string Version int TLS TLSOptions Auth BasicAuthOptions }
Options contains all values that are needed to connect to etcd.
type TLSOptions ¶
TLSOptions contains all certificates and keys.
Click to show internal directories.
Click to hide internal directories.