configuration

package
v1.7.12 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaults added in v1.7.0

func SetDefaults(defaults *models.Defaults)

SetDefaults will set default values for Defaults section config.

func SetGlobal added in v1.7.0

func SetGlobal(global *models.Global, logTargets *models.LogTargets, env Env)

SetGlobal will set default values for Global 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

Jump to

Keyboard shortcuts

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