Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaults ¶ added in v1.7.0
SetDefaults will set default values for Defaults section config.
Types ¶
type ControllerCfg ¶
type ControllerCfg struct { MapFiles *maps.MapFiles HAProxyRules *rules.SectionRules Certificates *certs.Certificates ActiveBackends map[string]struct{} RateLimitTables []string FrontHTTP string FrontHTTPS string FrontSSL string BackSSL string Env Env HTTPS bool SSLPassthrough bool }
func (*ControllerCfg) Clean ¶
func (c *ControllerCfg) Clean() error
Clean cleans all the statuses of various data that was changed deletes them completely or just resets them if needed
func (*ControllerCfg) Init ¶
func (c *ControllerCfg) Init() (err error)
Init initialize configuration
type Env ¶
type Env struct { HAProxyBinary string RuntimeSocket string PIDFile string MainCFGFile string AuxCFGFile string CfgDir string RuntimeDir string CertDir string FrontendCertDir string BackendCertDir string CaCertDir string StateDir string MapDir string PatternDir string ErrFileDir string }
Directories and files required by haproxy and controller
Click to show internal directories.
Click to hide internal directories.