file

package
v2.2.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Directory                 string `` /* 188-byte string literal not displayed */
	Watch                     bool   `description:"Watch provider." json:"watch,omitempty" toml:"watch,omitempty" yaml:"watch,omitempty" export:"true"`
	Filename                  string `` /* 145-byte string literal not displayed */
	DebugLogGeneratedTemplate bool   `` /* 214-byte string literal not displayed */
}

Provider holds configurations of the provider.

func (*Provider) BuildConfiguration

func (p *Provider) BuildConfiguration() (*dynamic.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(ctx context.Context, filename string, funcMap template.FuncMap, templateObjects interface{}) (*dynamic.Configuration, error)

CreateConfiguration creates a provider configuration from content using templating.

func (*Provider) DecodeConfiguration

func (p *Provider) DecodeConfiguration(filename string) (*dynamic.Configuration, error)

DecodeConfiguration Decodes a *types.Configuration from a content.

func (*Provider) Init

func (p *Provider) Init() error

Init the provider.

func (*Provider) Provide

func (p *Provider) Provide(configurationChan chan<- dynamic.Message, pool *safe.Pool) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL