frontend

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 DataSourceHaproxyFrontend

func DataSourceHaproxyFrontend() *schema.Resource

func ResourceHaproxyFrontend

func ResourceHaproxyFrontend() *schema.Resource

func TestHaproxyFrontend

func TestHaproxyFrontend(t *testing.T)

Types

type Compression

type Compression struct {
	Algorithms []string `json:"algorithms"`
	Offload    bool     `json:"offload"`
	Types      []string `json:"types"`
}

type ConfigFrontend

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

Config defines variable for haproxy configuration

func (*ConfigFrontend) AddFrontendConfiguration

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

AddFrontendConfiguration adds a Frontend configuration.

func (*ConfigFrontend) DeleteFrontendConfiguration

func (c *ConfigFrontend) DeleteFrontendConfiguration(FrontendName string, TransactionID string) (*http.Response, error)

DeleteFrontendConfiguration deletes a Frontend configuration.

func (*ConfigFrontend) GetAFrontendConfiguration

func (c *ConfigFrontend) GetAFrontendConfiguration(FrontendName string, TransactionID string) (*http.Response, error)

GetAFrontendConfiguration returns the configuration of a Frontend.

func (*ConfigFrontend) UpdateFrontendConfiguration

func (c *ConfigFrontend) UpdateFrontendConfiguration(FrontendName string, payload []byte, TransactionID string) (*http.Response, error)

UpdateFrontendConfiguration updates a Frontend configuration.

type Forwardfor

type Forwardfor struct {
	Enabled string `json:"enabled"` //bool
	Except  string `json:"except"`
	Header  string `json:"header"`
	Ifnone  bool   `json:"ifnone"`
}

type FrontendPayload

type FrontendPayload struct {
	Name                     string `json:"name"`
	DefaultBackend           string `json:"default_backend"`
	HttpConnectionMode       string `json:"http_connection_mode"`
	AcceptInvalidHttpRequest string `json:"accept_invalid_http_request"` //bool
	MaxConn                  int    `json:"maxconn"`
	Mode                     string `json:"mode"`
	Backlog                  int    `json:"backlog"`
	HttpKeepAliveTimeout     int    `json:"http_keep_alive_timeout"`
	HttpRequestTimeout       int    `json:"http_request_timeout"`
	HttpUseProxyHeader       string `json:"http_use_proxy_header"`
	HttpLog                  bool   `json:"httplog"`
	HttpsLog                 string `json:"httpslog"` //bool
	ErrorLogFormat           string `json:"error_log_format"`
	LogFormat                string `json:"log_format"`
	LogFormatSd              string `json:"log_format_sd"`
	MonitorUri               string `json:"monitor_uri"`
	TcpLog                   bool   `json:"tcplog"`
	Compression              Compression
	Forwardfor               Forwardfor
}

Jump to

Keyboard shortcuts

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