Version: v0.8.0 Latest Latest

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 22 Imported by: 0



Package etcd contains code that watches for changes in etcd. TODO: write a good documentation here.



This section is empty.


This section is empty.


func GetEtcdCommand

func GetEtcdCommand() *cobra.Command

GetEtcdCommand returns the etcd command

TODO: on next version this will probably be changed and adopt some other programming pattern, maybe with a factory.


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

Jump to

Keyboard shortcuts

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