consulcatalog

package
v2.4.14 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 19 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                  `description:"The address of the Consul server" json:"address,omitempty" toml:"address,omitempty" yaml:"address,omitempty"`
	Scheme           string                  `description:"The URI scheme for the Consul server" json:"scheme,omitempty" toml:"scheme,omitempty" yaml:"scheme,omitempty"`
	DataCenter       string                  `` /* 172-byte string literal not displayed */
	Token            string                  `` /* 173-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 ptypes.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"`
	Password string `description:"Basic Auth password" json:"password,omitempty" toml:"password,omitempty" yaml:"password,omitempty"`
}

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   ptypes.Duration `` /* 169-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