Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfiguration ¶ added in v1.4.0
type APIConfiguration struct { Endpoint string `description:"Rancher server API HTTP(S) endpoint"` AccessKey string `description:"Rancher server API access key"` SecretKey string `description:"Rancher server API secret key"` }
APIConfiguration contains configuration properties specific to the Rancher API provider.
type MetadataConfiguration ¶ added in v1.4.0
type MetadataConfiguration struct { IntervalPoll bool `description:"Poll the Rancher metadata service every 'rancher.refreshseconds' (less accurate)"` Prefix string `description:"Prefix used for accessing the Rancher metadata service"` }
MetadataConfiguration contains configuration properties specific to the Rancher metadata service provider.
type Provider ¶
type Provider struct { provider.BaseProvider `mapstructure:",squash"` APIConfiguration `mapstructure:",squash"` // Provide backwards compatibility API *APIConfiguration `description:"Enable the Rancher API provider"` Metadata *MetadataConfiguration `description:"Enable the Rancher metadata service provider"` Domain string `description:"Default domain used"` RefreshSeconds int `description:"Polling interval (in seconds)"` ExposedByDefault bool `description:"Expose services by default"` EnableServiceHealthFilter bool `description:"Filter services with unhealthy states and inactive states"` }
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 either the Rancher API or metadata service provider to seed configuration into Traefik using the given configuration channel.
Click to show internal directories.
Click to hide internal directories.