Documentation ¶
Index ¶
- func GenerateServiceKey(service string) string
- func WithLogger(log *logrus.Logger) func(b *Backend)
- func WithStaticLabels(labels []string) func(b *Backend)
- type Backend
- func (b *Backend) GetName() string
- func (b *Backend) Purge() error
- func (b *Backend) Refresh(containers []types.ContainerJSON) error
- func (b *Backend) RegisterServices(ports map[string]backends.ServiceWithLabels) error
- func (b *Backend) Run(ctx context.Context, events chan docker.ContainerEvent, purgeOnStart bool, ...) error
- func (b *Backend) UnregisterServices(ports map[string]backends.ServiceWithLabels) error
- type EtcdOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateServiceKey ¶
func WithLogger ¶
func WithStaticLabels ¶
Types ¶
type Backend ¶
type Backend struct { Name string Log *logrus.Entry EtcdClient *clientv3.Client ForwardAddress string StaticLabels []string }
func (*Backend) RegisterServices ¶
func (b *Backend) RegisterServices(ports map[string]backends.ServiceWithLabels) error
func (*Backend) Run ¶
func (b *Backend) Run(ctx context.Context, events chan docker.ContainerEvent, purgeOnStart bool, containersToRefresh []types.ContainerJSON) error
func (*Backend) UnregisterServices ¶
func (b *Backend) UnregisterServices(ports map[string]backends.ServiceWithLabels) error
type EtcdOption ¶
type EtcdOption func(*Backend)
Click to show internal directories.
Click to hide internal directories.