rancher

package
v2.0.0-alpha6+incompat... Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultTemplateRule The default template for the default rule.
	DefaultTemplateRule = "Host(`{{ normalize .Name }}`)"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	provider.Constrainer `description:"List of constraints used to filter out some containers." export:"true"`

	Watch                     bool   `description:"Watch provider." export:"true"`
	DefaultRule               string `description:"Default rule."`
	ExposedByDefault          bool   `description:"Expose containers by default." export:"true"`
	EnableServiceHealthFilter bool   `description:"Filter services with unhealthy states and inactive states." export:"true"`
	RefreshSeconds            int    `description:"Defines the polling interval in seconds." export:"true"`
	IntervalPoll              bool   `description:"Poll the Rancher metadata service every 'rancher.refreshseconds' (less accurate)."`
	Prefix                    string `description:"Prefix used for accessing the Rancher metadata service."`
	// contains filtered or unexported fields
}

Provider holds configurations of the provider.

func (*Provider) Init

func (p *Provider) Init() error

Init the provider.

func (*Provider) Provide

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

Provide allows the rancher 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