haproxy

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	AcquireTCPBackend(servicename string, port int) *hatypes.TCPBackend
	AcquireHost(hostname string) *hatypes.Host
	FindHost(hostname string) *hatypes.Host
	AcquireBackend(namespace, name, port string) *hatypes.Backend
	FindBackend(namespace, name, port string) *hatypes.Backend
	ConfigDefaultBackend(defaultBackend *hatypes.Backend)
	ConfigDefaultX509Cert(filename string)
	AddUserlist(name string, users []hatypes.User) *hatypes.Userlist
	FindUserlist(name string) *hatypes.Userlist
	FrontendGroup() *hatypes.FrontendGroup
	BuildFrontendGroup() error
	BuildBackendMaps() error
	DefaultHost() *hatypes.Host
	DefaultBackend() *hatypes.Backend
	AcmeData() *hatypes.AcmeData
	Acme() *hatypes.Acme
	Global() *hatypes.Global
	TCPBackends() []*hatypes.TCPBackend
	Hosts() []*hatypes.Host
	Backends() []*hatypes.Backend
	Userlists() []*hatypes.Userlist
	Equals(other Config) bool
}

Config ...

type Instance

type Instance interface {
	AcmeCheck(source string) (int, error)
	ParseTemplates() error
	Config() Config
	CalcIdleMetric()
	Update(timer *utils.Timer)
}

Instance ...

func CreateInstance

func CreateInstance(logger types.Logger, options InstanceOptions) Instance

CreateInstance ...

type InstanceOptions

type InstanceOptions struct {
	AcmeSigner        acme.Signer
	AcmeQueue         utils.Queue
	LeaderElector     types.LeaderElector
	MaxOldConfigFiles int
	HAProxyCmd        string
	HAProxyConfigFile string
	Metrics           types.Metrics
	ReloadCmd         string
	ReloadStrategy    string
	SortBackends      bool
	ValidateConfig    bool
}

InstanceOptions ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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