docker

package
v2.0.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// DockerAPIVersion is a constant holding the version of the Provider API traefik will use
	DockerAPIVersion = "1.24"

	// SwarmAPIVersion is a constant holding the version of the Provider API traefik will use.
	SwarmAPIVersion = "1.24"
)
View Source
const DefaultTemplateRule = "Host(`{{ normalize .Name }}`)"

DefaultTemplateRule The default template for the default rule.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Constraints             string           `` /* 256-byte string literal not displayed */
	Watch                   bool             `description:"Watch provider." json:"watch,omitempty" toml:"watch,omitempty" yaml:"watch,omitempty" export:"true"`
	Endpoint                string           `` /* 155-byte string literal not displayed */
	DefaultRule             string           `description:"Default rule." json:"defaultRule,omitempty" toml:"defaultRule,omitempty" yaml:"defaultRule,omitempty"`
	TLS                     *types.ClientTLS `description:"Enable Docker TLS support." json:"tls,omitempty" toml:"tls,omitempty" yaml:"tls,omitempty" export:"true"`
	ExposedByDefault        bool             `` /* 159-byte string literal not displayed */
	UseBindPortIP           bool             `` /* 196-byte string literal not displayed */
	SwarmMode               bool             `` /* 134-byte string literal not displayed */
	Network                 string           `` /* 131-byte string literal not displayed */
	SwarmModeRefreshSeconds types.Duration   `` /* 183-byte string literal not displayed */
	// contains filtered or unexported fields
}

Provider holds configurations of the provider.

func (*Provider) Init

func (p *Provider) Init() error

Init the provider.

func (*Provider) Provide

func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error

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

func (*Provider) SetDefaults

func (p *Provider) SetDefaults()

SetDefaults sets the default values.

Jump to

Keyboard shortcuts

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