docker

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

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

DefaultTemplateRule The default template for the default rule.

View Source
const DockerAPIVersion = "1.24"

DockerAPIVersion is a constant holding the version of the Provider API traefik will use.

View Source
const SwarmAPIVersion = "1.24"

SwarmAPIVersion is a constant holding the version of the Provider API traefik will use.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	Endpoint          string           `` /* 155-byte string literal not displayed */
	TLS               *types.ClientTLS `description:"Enable Docker TLS support." json:"tls,omitempty" toml:"tls,omitempty" yaml:"tls,omitempty" export:"true"`
	HTTPClientTimeout ptypes.Duration  `` /* 169-byte string literal not displayed */
	// contains filtered or unexported fields
}

type DynConfBuilder

type DynConfBuilder struct {
	Shared
	// contains filtered or unexported fields
}

func NewDynConfBuilder

func NewDynConfBuilder(configuration Shared, apiClient client.APIClient) *DynConfBuilder

type Provider

type Provider struct {
	Shared       `yaml:",inline" export:"true"`
	ClientConfig `yaml:",inline" export:"true"`
}

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 docker provider to provide configurations to traefik using the given configuration channel.

func (*Provider) SetDefaults

func (p *Provider) SetDefaults()

SetDefaults sets the default values.

type Shared

type Shared struct {
	ExposedByDefault   bool   `` /* 159-byte string literal not displayed */
	Constraints        string `` /* 256-byte string literal not displayed */
	AllowEmptyServices bool   `` /* 253-byte string literal not displayed */
	Network            string `` /* 131-byte string literal not displayed */
	UseBindPortIP      bool   `` /* 196-byte string literal not displayed */

	Watch       bool   `description:"Watch Docker events." json:"watch,omitempty" toml:"watch,omitempty" yaml:"watch,omitempty" export:"true"`
	DefaultRule string `description:"Default rule." json:"defaultRule,omitempty" toml:"defaultRule,omitempty" yaml:"defaultRule,omitempty"`
	// contains filtered or unexported fields
}

type SwarmProvider

type SwarmProvider struct {
	Shared       `yaml:",inline" export:"true"`
	ClientConfig `yaml:",inline" export:"true"`

	RefreshSeconds ptypes.Duration `` /* 156-byte string literal not displayed */
}

SwarmProvider holds configurations of the provider.

func (*SwarmProvider) Init

func (p *SwarmProvider) Init() error

Init the provider.

func (*SwarmProvider) Provide

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

Provide allows the docker provider to provide configurations to traefik using the given configuration channel.

func (*SwarmProvider) SetDefaults

func (p *SwarmProvider) SetDefaults()

SetDefaults sets the default values.

Jump to

Keyboard shortcuts

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