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 `` /* 169-byte string literal not displayed */ Watch bool `description:"Watch provider." export:"true"` Endpoint string `description:"Docker server endpoint. Can be a tcp or a unix socket endpoint."` DefaultRule string `description:"Default rule."` TLS *types.ClientTLS `description:"Enable Docker TLS support." export:"true"` ExposedByDefault bool `description:"Expose containers by default." export:"true"` UseBindPortIP bool `description:"Use the ip address from the bound port, rather than from the inner network." export:"true"` SwarmMode bool `description:"Use Docker on Swarm Mode." export:"true"` Network string `description:"Default Docker network used." export:"true"` SwarmModeRefreshSeconds types.Duration `description:"Polling interval for swarm mode." export:"true"` // contains filtered or unexported fields }
Provider holds configurations of the provider.
func (*Provider) Provide ¶
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.
Click to show internal directories.
Click to hide internal directories.