consulcatalog

package
v2.2.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultTemplateRule = "Host(`{{ normalize .Name }}`)"

DefaultTemplateRule The default template for the default rule.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointConfig

type EndpointConfig struct {
	Address          string                  `` /* 135-byte string literal not displayed */
	Scheme           string                  `` /* 136-byte string literal not displayed */
	DataCenter       string                  `` /* 186-byte string literal not displayed */
	Token            string                  `` /* 187-byte string literal not displayed */
	TLS              *types.ClientTLS        `description:"Enable TLS support." json:"tls,omitempty" toml:"tls,omitempty" yaml:"tls,omitempty" export:"true"`
	HTTPAuth         *EndpointHTTPAuthConfig `` /* 138-byte string literal not displayed */
	EndpointWaitTime types.Duration          `` /* 229-byte string literal not displayed */
}

EndpointConfig holds configurations of the endpoint.

func (*EndpointConfig) SetDefaults

func (c *EndpointConfig) SetDefaults()

SetDefaults sets the default values.

type EndpointHTTPAuthConfig

type EndpointHTTPAuthConfig struct {
	Username string `description:"Basic Auth username" json:"username,omitempty" toml:"username,omitempty" yaml:"username,omitempty" export:"true"`
	Password string `description:"Basic Auth password" json:"password,omitempty" toml:"password,omitempty" yaml:"password,omitempty" export:"true"`
}

EndpointHTTPAuthConfig holds configurations of the authentication.

type Provider

type Provider struct {
	Constraints       string          `` /* 256-byte string literal not displayed */
	Endpoint          *EndpointConfig `` /* 130-byte string literal not displayed */
	Prefix            string          `` /* 149-byte string literal not displayed */
	RefreshInterval   types.Duration  `` /* 171-byte string literal not displayed */
	RequireConsistent bool            `` /* 172-byte string literal not displayed */
	Stale             bool            `` /* 137-byte string literal not displayed */
	Cache             bool            `` /* 139-byte string literal not displayed */
	ExposedByDefault  bool            `` /* 159-byte string literal not displayed */
	DefaultRule       string          `description:"Default rule." json:"defaultRule,omitempty" toml:"defaultRule,omitempty" yaml:"defaultRule,omitempty"`
	// 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<- dynamic.Message, pool *safe.Pool) error

Provide allows the consul catalog 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