haproxy

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 22 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 {
	Frontend() *hatypes.Frontend
	SyncConfig()
	WriteTCPServicesMaps() error
	WriteFrontendMaps() error
	WriteBackendMaps() error
	AcmeData() *hatypes.AcmeData
	Global() *hatypes.Global
	TCPBackends() *hatypes.TCPBackends
	TCPServices() *hatypes.TCPServices
	Hosts() *hatypes.Hosts
	Backends() *hatypes.Backends
	Userlists() *hatypes.Userlists
	Clear()
	Shrink()
	Commit()
}

Config ...

type Instance

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

Instance ...

func CreateInstance

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

CreateInstance ...

type InstanceOptions

type InstanceOptions struct {
	AcmeSigner        acme.Signer
	AcmeQueue         acme.Queue
	RootFSPrefix      string
	LocalFSPrefix     string
	BackendShards     int
	HAProxyCfgDir     string
	HAProxyMapsDir    string
	IsMasterWorker    bool
	IsExternal        bool
	ConnectionTimeout time.Duration
	GracePeriod       time.Duration
	MasterSocket      string
	AdminSocket       string
	AcmeSocket        string
	MaxOldConfigFiles int
	Metrics           types.Metrics
	ReloadQueue       *workqueue.WorkQueue[any]
	ReloadStrategy    string
	SortEndpointsBy   string
	StopCtx           context.Context
	TrackInstances    bool
	ValidateConfig    bool
	// contains filtered or unexported fields
}

InstanceOptions ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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