Documentation ¶
Index ¶
- func WithLogger(log *logrus.Logger) func(b *Backend)
- func WithStaticLabels(labels []string) func(b *Backend)
- type Backend
- func (b *Backend) DeregisterServices(ports map[string]backends.ServiceWithLabels) error
- 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
- type ConsulOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithLogger ¶
func WithStaticLabels ¶
Types ¶
type Backend ¶
type Backend struct { Name string Log *logrus.Entry ConsulClient *consulapi.Client ForwardAddress string StaticLabels []string }
func (*Backend) DeregisterServices ¶
func (b *Backend) DeregisterServices(ports map[string]backends.ServiceWithLabels) error
func (*Backend) RegisterServices ¶
func (b *Backend) RegisterServices(ports map[string]backends.ServiceWithLabels) error
functen that registgers ports to consul
type ConsulOption ¶
type ConsulOption func(*Backend)
Click to show internal directories.
Click to hide internal directories.