defaults

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceHaproxyDefaults

func DataSourceHaproxyDefaults() *schema.Resource

func ResourceHaproxyDefaults

func ResourceHaproxyDefaults() *schema.Resource

func TestHaproxyDefaults

func TestHaproxyDefaults(t *testing.T)

Types

type ConfigDefaults

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

Config defines variable for haproxy configuration

func (*ConfigDefaults) AddDefaultsConfiguration

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

AddDefaultsConfiguration adds a Defaults configuration.

func (*ConfigDefaults) DeleteDefaultsConfiguration

func (c *ConfigDefaults) DeleteDefaultsConfiguration(DefaultsName string, TransactionID string) (*http.Response, error)

DeleteDefaultsConfiguration deletes a Defaults configuration.

func (*ConfigDefaults) GetADefaultsConfiguration

func (c *ConfigDefaults) GetADefaultsConfiguration(DefaultsName string, TransactionID string) (*http.Response, error)

GetADefaultsConfiguration returns the configuration of a Defaults.

func (*ConfigDefaults) UpdateDefaultsConfiguration

func (c *ConfigDefaults) UpdateDefaultsConfiguration(DefaultsName string, payload []byte, TransactionID string) (*http.Response, error)

UpdateDefaultsConfiguration updates a Defaults configuration.

type DefaultsPayload

type DefaultsPayload struct {
	Name                 string `json:"name"`
	Mode                 string `json:"mode"`
	Backlog              int    `json:"backlog"`
	HTTPLog              bool   `json:"httplog"`
	HTTPSLog             string `json:"httpslog"`
	TCPLog               bool   `json:"tcplog"`
	Retries              int    `json:"retries"`
	CheckTimeout         int    `json:"check_timeout"`
	ClientTimeout        int    `json:"client_timeout"`
	ConnectTimeout       int    `json:"connect_timeout"`
	HTTPKeepAliveTimeout int    `json:"http_keep_alive_timeout"`
	HTTPRequestTimeout   int    `json:"http_request_timeout"`
	QueueTimeout         int    `json:"queue_timeout"`
	ServerTimeout        int    `json:"server_timeout"`
	ServerFinTimeout     int    `json:"server_fin_timeout"`
	MaxConn              int    `json:"maxconn"`
}

Jump to

Keyboard shortcuts

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