haproxy

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hosts    []*Host
	Config   *config.ExtensionConfig
	Networks map[string]string
}

type ContextRoot added in v1.1.1

type ContextRoot struct {
	Name string
	Path string
}

type HAProxyLoadBalancer

type HAProxyLoadBalancer struct {
	// contains filtered or unexported fields
}

func NewHAProxyLoadBalancer

func NewHAProxyLoadBalancer(c *config.ExtensionConfig, cl *client.Client) (*HAProxyLoadBalancer, error)

func (*HAProxyLoadBalancer) ConfigPath

func (p *HAProxyLoadBalancer) ConfigPath() string

func (*HAProxyLoadBalancer) GenerateProxyConfig

func (p *HAProxyLoadBalancer) GenerateProxyConfig(containers []types.Container) (interface{}, error)

func (*HAProxyLoadBalancer) HandleEvent

func (p *HAProxyLoadBalancer) HandleEvent(event *events.Message) error

func (*HAProxyLoadBalancer) Name

func (p *HAProxyLoadBalancer) Name() string

func (*HAProxyLoadBalancer) Reload

func (p *HAProxyLoadBalancer) Reload(proxyContainers []types.Container) error

func (*HAProxyLoadBalancer) Template

func (p *HAProxyLoadBalancer) Template() string

type Host

type Host struct {
	Name                string
	ContextRoot         *ContextRoot
	ContextRootRewrite  bool
	Domain              string
	Check               string
	BackendOptions      []string
	Upstreams           []*Upstream
	SSLOnly             bool
	SSLBackend          bool
	SSLBackendTLSVerify string
	BalanceAlgorithm    string
}

type Upstream

type Upstream struct {
	Container     string
	Addr          string
	CheckInterval int
}

Jump to

Keyboard shortcuts

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