Documentation ¶
Index ¶
- type Provider
- func (p *Provider) BuildConfiguration() (*config.Configuration, error)
- func (p *Provider) CreateConfiguration(tmplContent string, funcMap template.FuncMap, templateObjects interface{}) (*config.Configuration, error)
- func (p *Provider) DecodeConfiguration(content string) (*config.Configuration, error)
- func (p *Provider) Init() error
- func (p *Provider) Provide(configurationChan chan<- config.Message, pool *safe.Pool) error
- func (p *Provider) SetDefaults()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct { Directory string `description:"Load configuration from one or more .toml files in a directory." export:"true"` Watch bool `description:"Watch provider." export:"true"` Filename string `description:"Override default configuration template. For advanced users :)" export:"true"` DebugLogGeneratedTemplate bool `description:"Enable debug logging of generated configuration template." export:"true"` TraefikFile string `description:"-"` }
Provider holds configurations of the provider.
func (*Provider) BuildConfiguration ¶
func (p *Provider) BuildConfiguration() (*config.Configuration, error)
BuildConfiguration loads configuration either from file or a directory specified by 'Filename'/'Directory' and returns a 'Configuration' object
func (*Provider) CreateConfiguration ¶
func (p *Provider) CreateConfiguration(tmplContent string, funcMap template.FuncMap, templateObjects interface{}) (*config.Configuration, error)
CreateConfiguration creates a provider configuration from content using templating.
func (*Provider) DecodeConfiguration ¶
func (p *Provider) DecodeConfiguration(content string) (*config.Configuration, error)
DecodeConfiguration Decodes a *types.Configuration from a content.
func (*Provider) Provide ¶
Provide allows the file 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.