etcd2

package
v4.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(conf *Config) (types.ConfigSource, error)

New creates a new etcd2 config source

Types

type Config

type Config struct {
	// A list of Etcd2 servers to use
	Endpoints []string `yaml:"endpoints"`
	// An optional username to use when connecting
	Username string `yaml:"username"`
	// An optional password to use when connecting
	Password string `yaml:"password" neverLog:"true"`
}

Config for an Etcd2 source

func (*Config) New

func (c *Config) New() (types.ConfigSource, error)

New creates a new Etcd2 remote config source from the target config

func (*Config) Validate

func (c *Config) Validate() error

Validate the config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL