Documentation ¶
Index ¶
- Constants
- func ExtractPorts(labels map[string]string, prefix string) map[string]string
- func MapServices(ports map[string]string, containerLabels map[string]string, ...) map[string]ServiceWithLabels
- func TraefikLabelFilter(serviceLabels *[]string, containerLabels map[string]string, service string)
- type Backend
- type BackendOption
- type FilterFunc
- type ServiceWithLabels
Constants ¶
View Source
const ServiceLabelPort = "creg.port"
View Source
const ServicePrefix = "creg"
Variables ¶
This section is empty.
Functions ¶
func MapServices ¶
func MapServices(ports map[string]string, containerLabels map[string]string, staticLabelsToAdd []string, filters []FilterFunc) map[string]ServiceWithLabels
Types ¶
type Backend ¶
type Backend interface { Run(ctx context.Context, events chan docker.ContainerEvent, purgeOnStart bool, containersToRefresh []types.ContainerJSON) error Purge() error Refresh(containers []types.ContainerJSON) error GetName() string }
type BackendOption ¶
type BackendOption func(*Backend)
type FilterFunc ¶
type ServiceWithLabels ¶
Click to show internal directories.
Click to hide internal directories.