global

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceHaproxyGlobal

func DataSourceHaproxyGlobal() *schema.Resource

func ResourceHaproxyGlobal

func ResourceHaproxyGlobal() *schema.Resource

func TestHaproxyGlobal

func TestHaproxyGlobal(t *testing.T)

Types

type ConfigGlobal

type ConfigGlobal struct {
	Username string
	Password string
	BaseURL  string
	SSL      bool
}

Config defines variable for haproxy configuration

func (*ConfigGlobal) GetAGlobalConfiguration

func (c *ConfigGlobal) GetAGlobalConfiguration(TransactionID string) (*http.Response, error)

GetAGlobalConfiguration returns the configuration of a Global.

func (*ConfigGlobal) UpdateGlobalConfiguration

func (c *ConfigGlobal) UpdateGlobalConfiguration(payload []byte, TransactionID string) (*http.Response, error)

UpdateGlobalConfiguration updates a Global configuration.

type CpuMaps

type CpuMaps struct {
	Process string `json:"process"`
	CpuSet  string `json:"cpu_set"`
}

type GlobalPayload

type GlobalPayload struct {
	User                  string `json:"user"`
	Group                 string `json:"group"`
	Chroot                string `json:"chroot"`
	CpuMaps               CpuMaps
	Daemon                string `json:"daemon"` //bool
	MasterWorker          bool   `json:"master-worker"`
	MaxCompCpuUsage       int    `json:"maxcompcpuusage"`
	MaxPipes              int    `json:"maxpipes"`
	MaxSslConn            int    `json:"maxsslconn"`
	MaxConn               int    `json:"maxconn"`
	NbProc                int    `json:"nbproc"`
	NbThread              int    `json:"nbthread"`
	PidFile               string `json:"pidfile"`
	UlimitN               int    `json:"ulimit_n"`
	CrtBase               string `json:"crt_base"`
	CaBase                string `json:"ca_base"`
	StatsMaxConn          int    `json:"stats_maxconn"`
	StatsTimeOut          int    `json:"stats_timeout"`
	SslDefaultBindCiphers string `json:"ssl_default_bind_ciphers"`
	SslDefaultBindOptions string `json:"ssl_default_bind_options"`
}

GlobalPayload defines the payload for global configuration

Jump to

Keyboard shortcuts

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