Documentation ¶
Overview ¶
Package provider holds the different provider implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
Docker holds configurations of the Docker provider.
func (*Docker) GetFrontendRule ¶
GetFrontendRule returns the frontend rule for the specified container, using it's label. It returns a default one (Host) if the label is not present.
func (*Docker) GetFrontendValue ¶
GetFrontendValue returns the frontend value for the specified container, using it's label. It returns a default one if the label is not present.
type Kv ¶
type Kv struct { Watch bool Endpoint string Prefix string Filename string StoreType store.Backend // contains filtered or unexported fields }
Kv holds common configurations of key-value providers.
func NewBoltDbProvider ¶
NewBoltDbProvider returns a BoldDb provider.
func NewConsulProvider ¶
NewConsulProvider returns a Consul provider.
func NewEtcdProvider ¶
NewEtcdProvider returns a Etcd provider.
func NewZkProvider ¶
NewZkProvider returns a Zookepper provider.
type Marathon ¶
type Marathon struct { Watch bool Endpoint string Domain string Filename string NetworkInterface string // contains filtered or unexported fields }
Marathon holds configuration of the Marathon provider.
func (*Marathon) GetFrontendRule ¶
GetFrontendRule returns the frontend rule for the specified application, using it's label. It returns a default one (Host) if the label is not present.
func (*Marathon) GetFrontendValue ¶
GetFrontendValue returns the frontend value for the specified application, using it's label. It returns a default one if the label is not present.
type Provider ¶
type Provider interface { // Provide allows the provider to provide configurations to traefik // using the given configuration channel. Provide(configurationChan chan<- types.ConfigMessage) error }
Provider defines methods of a provider.