Documentation ¶
Index ¶
- func DataSourceHaproxyBackend() *schema.Resource
- func ResourceHaproxyBackend() *schema.Resource
- func TestResourceHaproxyBackendCreate(t *testing.T)
- func TestResourceHaproxyBackendDelete(t *testing.T)
- func TestResourceHaproxyBackendUpdate(t *testing.T)
- type BackendPayload
- type Balance
- type ConfigBackend
- func (c *ConfigBackend) AddBackendConfiguration(payload []byte, TransactionID string) (*http.Response, error)
- func (c *ConfigBackend) DeleteBackendConfiguration(backendName string, TransactionID string) (*http.Response, error)
- func (c *ConfigBackend) GetABackendConfiguration(backendName string, TransactionID string) (*http.Response, error)
- func (c *ConfigBackend) GetAllBackendConfiguration(TransactionID string) (*http.Response, error)
- func (c *ConfigBackend) UpdateBackendConfiguration(backendName string, payload []byte, TransactionID string) (*http.Response, error)
- type Forwardfor
- type HttpchkParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResourceHaproxyBackend ¶
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 ConfigBackend ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.