bind

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 DataSourceHaproxyBind

func DataSourceHaproxyBind() *schema.Resource

func ResourceHaproxyBind

func ResourceHaproxyBind() *schema.Resource

func TestHaproxyBind

func TestHaproxyBind(t *testing.T)

Types

type BindPayload

type BindPayload struct {
	Name    string `json:"name"`
	Address string `json:"address"`
	Port    int    `json:"port"`
	Maxconn int    `json:"maxconn"`
	User    string `json:"user"`
	Group   string `json:"group"`
	Mode    string `json:"mode"`
}

type ConfigBind

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

Config defines variable for haproxy configuration

func (*ConfigBind) AddBindConfiguration

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

AddBindConfiguration adds a Bind configuration.

func (*ConfigBind) DeleteBindConfiguration

func (c *ConfigBind) DeleteBindConfiguration(BindName string, TransactionID string, parentName string, parentType string) (*http.Response, error)

DeleteBindConfiguration deletes a Bind configuration.

func (*ConfigBind) GetABindConfiguration

func (c *ConfigBind) GetABindConfiguration(BindName string, TransactionID string, parentName string, parentType string) (*http.Response, error)

GetABindConfiguration returns the configuration of a Bind.

func (*ConfigBind) UpdateBindConfiguration

func (c *ConfigBind) UpdateBindConfiguration(BindName string, payload []byte, TransactionID string, parentName string, parentType string) (*http.Response, error)

UpdateBindConfiguration updates a Bind configuration.

Jump to

Keyboard shortcuts

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