server

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 DataSourceHaproxyServer

func DataSourceHaproxyServer() *schema.Resource

func DataSourceHaproxyServerRead

func DataSourceHaproxyServerRead(d *schema.ResourceData, m interface{}) error

func ResourceHaproxyServer

func ResourceHaproxyServer() *schema.Resource

func TestHaproxyServer

func TestHaproxyServer(t *testing.T)

Types

type ConfigServer

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

Config defines variable for haproxy configuration

func (*ConfigServer) AddServerConfiguration

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

AddServerConfiguration adds a Server configuration.

func (*ConfigServer) DeleteServerConfiguration

func (c *ConfigServer) DeleteServerConfiguration(ServerName string, TransactionID string, parentName string, parentType string) (*http.Response, error)

DeleteServerConfiguration deletes a Server configuration.

func (*ConfigServer) GetAServerConfiguration

func (c *ConfigServer) GetAServerConfiguration(ServerName string, TransactionID string, parentName string, parentType string) (*http.Response, error)

GetAServerConfiguration returns the configuration of a Server.

func (*ConfigServer) UpdateServerConfiguration

func (c *ConfigServer) UpdateServerConfiguration(ServerName string, payload []byte, TransactionID string, parentName string, parentType string) (*http.Response, error)

UpdateServerConfiguration updates a Server configuration.

type ServerPayload

type ServerPayload struct {
	Name      string `json:"name"`
	Address   string `json:"address"`
	Port      int    `json:"port"`
	SendProxy string `json:"send-proxy"`
	Check     string `json:"check"`
	Inter     int    `json:"inter"`
	Rise      int    `json:"rise"`
	Fall      int    `json:"fall"`
}

Jump to

Keyboard shortcuts

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