httpcheck

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 DataSourceHaproxyHttpcheck

func DataSourceHaproxyHttpcheck() *schema.Resource

func ResourceHaproxyHttpcheck

func ResourceHaproxyHttpcheck() *schema.Resource

func TestHaproxyHttpCheck

func TestHaproxyHttpCheck(t *testing.T)

Types

type ConfigHttpCheck

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

Config defines variable for haproxy configuration

func (*ConfigHttpCheck) AddHttpCheckConfiguration

func (c *ConfigHttpCheck) AddHttpCheckConfiguration(payload []byte, TransactionID string, parentName string, parentType string) (*http.Response, error)

AddHttpCheckConfiguration adds a HttpCheck configuration.

func (*ConfigHttpCheck) DeleteHttpCheckConfiguration

func (c *ConfigHttpCheck) DeleteHttpCheckConfiguration(HttpCheckIndexName int, TransactionID string, parentName string, parentType string) (*http.Response, error)

DeleteHttpCheckConfiguration deletes a HttpCheck configuration.

func (*ConfigHttpCheck) GetAHttpCheckConfiguration

func (c *ConfigHttpCheck) GetAHttpCheckConfiguration(HttpCheckIndexName int, TransactionID string, parentName string, parentType string) (*http.Response, error)

GetAHttpCheckConfiguration returns the configuration of a HttpCheck.

func (*ConfigHttpCheck) UpdateHttpCheckConfiguration

func (c *ConfigHttpCheck) UpdateHttpCheckConfiguration(HttpCheckIndexName int, payload []byte, TransactionID string, parentName string, parentType string) (*http.Response, error)

UpdateHttpCheckConfiguration updates a HttpCheck configuration.

type Headers

type Headers struct {
	Name string `json:"name"`
	Fmt  string `json:"fmt"`
}

type HttpCheckPayload

type HttpCheckPayload struct {
	Index           int    `json:"index"`
	Addr            string `json:"addr"`
	Alpn            string `json:"alpn"`
	Body            string `json:"body"`
	BodyLogFormat   string `json:"body_log_format"`
	CheckComment    string `json:"check_comment"`
	Default         bool   `json:"default"`
	ErrorStatus     string `json:"error_status"`
	ExclamationMark bool   `json:"exclamation_mark"`
	Headers         []Headers
	Linger          bool   `json:"linger"`
	Match           string `json:"match"`
	Method          string `json:"method"`
	MinRecv         int    `json:"min_recv"`
	OkStatus        string `json:"ok_status"`
	OnError         string `json:"on_error"`
	OnSuccess       string `json:"on_success"`
	Pattern         string `json:"pattern"`
	Port            int    `json:"port"`
	PortString      string `json:"port_string"`
	Proto           string `json:"proto"`
	SendProxy       bool   `json:"send_proxy"`
	Sni             string `json:"sni"`
	Ssl             bool   `json:"ssl"`
	StatusCode      string `json:"status-code"`
	Type            string `json:"type"`
	Uri             string `json:"uri"`
	UriLogFormat    string `json:"uri_log_format"`
	VarExpr         string `json:"var_expr"`
	VarName         string `json:"var_name"`
	VarFormat       string `json:"var_format"`
	VarScope        string `json:"var_scope"`
	Version         string `json:"version"`
	ViaSocks4       bool   `json:"via_socks4"`
}

Jump to

Keyboard shortcuts

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