env

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaults

func SetDefaults(defaults *models.Defaults)

SetDefaults will set default values for Defaults section config.

func SetGlobal

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

SetGlobal will set default values for Global section config.

Types

type Env

type Env struct {
	MainCFGRaw    []byte
	MainCFGFile   string
	Binary        string
	RuntimeSocket string
	PIDFile       string
	AuxCFGFile    string
	CfgDir        string
	RuntimeDir    string
	StateDir      string
	PatternDir    string
	ErrFileDir    string
	MapsDir       string
	Certs         certs.Env
	Proxies
}

Env contains Directories and files required by haproxy

func (*Env) Init

func (env *Env) Init(osArgs utils.OSArgs) (err error)

Init initializes HAProxy Environment

type Proxies

type Proxies struct {
	FrontHTTP  string
	FrontHTTPS string
	FrontSSL   string
	BackSSL    string
}

Proxies contains names of the main proxies of haproxy config

Jump to

Keyboard shortcuts

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