Documentation ¶
Overview ¶
Package provider holds the different provider implementation.
Index ¶
Constants ¶
const ( // DefaultWatchWaitTime is the duration to wait when polling consul DefaultWatchWaitTime = 15 * time.Second // DefaultConsulCatalogTagPrefix is a prefix for additional service/node configurations DefaultConsulCatalogTagPrefix = "traefik" )
const DockerAPIVersion string = "1.21"
DockerAPIVersion is a constant holding the version of the Docker API traefik will use
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseProvider ¶
BaseProvider should be inherited by providers
type BoltDb ¶
type BoltDb struct {
Kv `mapstructure:",squash"`
}
BoltDb holds configurations of the BoltDb provider.
type Consul ¶
type Consul struct {
Kv `mapstructure:",squash"`
}
Consul holds configurations of the Consul provider.
type ConsulCatalog ¶
type ConsulCatalog struct { BaseProvider `mapstructure:",squash"` Endpoint string Domain string Prefix string // contains filtered or unexported fields }
ConsulCatalog holds configurations of the Consul catalog provider.
func (*ConsulCatalog) Provide ¶
func (provider *ConsulCatalog) Provide(configurationChan chan<- types.ConfigMessage, pool *safe.Pool) error
Provide allows the provider to provide configurations to traefik using the given configuration channel.
type Docker ¶
type Docker struct { BaseProvider `mapstructure:",squash"` Endpoint string Domain string TLS *DockerTLS }
Docker holds configurations of the Docker provider.
type Etcd ¶
type Etcd struct {
Kv `mapstructure:",squash"`
}
Etcd holds configurations of the Etcd provider.
type File ¶
type File struct {
BaseProvider `mapstructure:",squash"`
}
File holds configurations of the File provider.
type Kv ¶
type Kv struct { BaseProvider `mapstructure:",squash"` Endpoint string Prefix string TLS *KvTLS // contains filtered or unexported fields }
Kv holds common configurations of key-value providers.
type Marathon ¶
type Marathon struct { BaseProvider `mapstructure:",squash"` Endpoint string Domain string ExposedByDefault bool Basic *MarathonBasic TLS *tls.Config // contains filtered or unexported fields }
Marathon holds configuration of the Marathon provider.
type MarathonBasic ¶
MarathonBasic holds basic authentication specific configurations
type Provider ¶
type Provider interface { // Provide allows the provider to provide configurations to traefik // using the given configuration channel. Provide(configurationChan chan<- types.ConfigMessage, pool *safe.Pool) error }
Provider defines methods of a provider.