backend

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 DataSourceHaproxyBackend

func DataSourceHaproxyBackend() *schema.Resource

func ResourceHaproxyBackend

func ResourceHaproxyBackend() *schema.Resource

func TestResourceHaproxyBackendCreate

func TestResourceHaproxyBackendCreate(t *testing.T)

func TestResourceHaproxyBackendDelete

func TestResourceHaproxyBackendDelete(t *testing.T)

func TestResourceHaproxyBackendUpdate

func TestResourceHaproxyBackendUpdate(t *testing.T)

Types

type BackendPayload

type BackendPayload struct {
	Name               string `json:"name"`
	Mode               string `json:"mode"`
	AdvCheck           string `json:"adv_check"`
	HttpConnectionMode string `json:"http_connection_mode"`
	ServerTimeout      int    `json:"server_timeout"`
	CheckTimeout       int    `json:"check_timeout"`
	ConnectTimeout     int    `json:"connect_timeout"`
	QueueTimeout       int    `json:"queue_timeout"`
	TunnelTimeout      int    `json:"tunnel_timeout"`
	TarpitTimeout      int    `json:"tarpit_timeout"`
	CheckCache         string `json:"checkcache"` //bool
	Balance            Balance
	HttpchkParams      HttpchkParams
	Forwardfor         Forwardfor
}

type Balance

type Balance struct {
	Algorithm string `json:"algorithm"`
}

type ConfigBackend

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

Config defines variable for backend configuration

func (*ConfigBackend) AddBackendConfiguration

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

AddBackendConfiguration adds a backend configuration.

func (*ConfigBackend) DeleteBackendConfiguration

func (c *ConfigBackend) DeleteBackendConfiguration(backendName string, TransactionID string) (*http.Response, error)

DeleteBackendConfiguration deletes a backend configuration.

func (*ConfigBackend) GetABackendConfiguration

func (c *ConfigBackend) GetABackendConfiguration(backendName string, TransactionID string) (*http.Response, error)

GetABackendConfiguration returns the configuration of a backend.

func (*ConfigBackend) GetAllBackendConfiguration

func (c *ConfigBackend) GetAllBackendConfiguration(TransactionID string) (*http.Response, error)

GetAllBackendConfiguration returns the configuration of all backends.

func (*ConfigBackend) UpdateBackendConfiguration

func (c *ConfigBackend) UpdateBackendConfiguration(backendName string, payload []byte, TransactionID string) (*http.Response, error)

UpdateBackendConfiguration updates a backend configuration.

type Forwardfor

type Forwardfor struct {
	Enabled string `json:"enabled"` //bool
}

type HttpchkParams

type HttpchkParams struct {
	Method  string `json:"method"`
	Uri     string `json:"uri"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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