docker

package
v1.3.0-rc3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2017 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SwarmAPIVersion is a constant holding the version of the Provider API traefik will use
	SwarmAPIVersion string = "1.24"
	// SwarmDefaultWatchTime is the duration of the interval when polling docker
	SwarmDefaultWatchTime = 15 * time.Second
)
View Source
const (
	// DockerAPIVersion is a constant holding the version of the Provider API traefik will use
	DockerAPIVersion string = "1.21"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	provider.BaseProvider `mapstructure:",squash"`
	Endpoint              string              `description:"Docker server endpoint. Can be a tcp or a unix socket endpoint"`
	Domain                string              `description:"Default domain used"`
	TLS                   *provider.ClientTLS `description:"Enable Docker TLS support"`
	ExposedByDefault      bool                `description:"Expose containers by default"`
	UseBindPortIP         bool                `description:"Use the ip address from the bound port, rather than from the inner network"`
	SwarmMode             bool                `description:"Use Docker on Swarm Mode"`
}

Provider holds configurations of the provider.

func (*Provider) Provide

func (p *Provider) Provide(configurationChan chan<- types.ConfigMessage, pool *safe.Pool, constraints types.Constraints) error

Provide allows the docker provider to provide configurations to traefik using the given configuration channel.

Jump to

Keyboard shortcuts

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