Documentation ¶
Overview ¶
Package etcd contains code that watches for changes in etcd. TODO: write a good documentation here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEtcdCommand ¶
GetEtcdCommand returns the etcd command
TODO: on next version this will probably be changed and adopt some other programming pattern, maybe with a factory.
Types ¶
type Credentials ¶
type Credentials struct { // Username to authenticate as Username string `yaml:"username,omitempty"` // Password for this username Password string `yaml:"password,omitempty"` }
Credentials is a container with username and password for authenticating to etcd
type Endpoint ¶
type Endpoint struct { // Host of the etcd node Host string `yaml:"host,omitempty"` // Port where the etcd node is listening from Port int32 `yaml:"port,omitempty"` }
Endpoint is a container with host and port of an etcd node
type Options ¶
type Options struct { // Endpoints is a list of hosts and ports where etcd nodes are running Endpoints []Endpoint `yaml:"endpoints,omitempty"` // Credentials to connect to the cluster, if authentication mode is enabled Credentials *Credentials `yaml:"credentials,omitempty"` // Prefix where the service registry objects are stored Prefix string `yaml:"prefix,omitempty"` // contains filtered or unexported fields }
Options contans data needed to connect to the etcd cluster correctly
Click to show internal directories.
Click to hide internal directories.