env

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 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 {
	Certs certs.Env
	Proxies
	CfgDir         string
	RuntimeSocket  string
	MasterSocket   string
	PIDFile        string
	AuxCFGFile     string
	RuntimeDir     string
	StateDir       string
	PatternDir     string
	ErrFileDir     string
	MapsDir        string
	Binary         string
	MainCFGFile    string
	MainCFGRaw     []byte
	ControllerPort int
}

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