ServerTemplate

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSourceHaproxyServerTemplate

func DataSourceHaproxyServerTemplate() *schema.Resource

func ResourceHaproxyServerTemplate

func ResourceHaproxyServerTemplate() *schema.Resource

Types

type ConfigServerTemplate

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

Config defines variable for haproxy configuration

func (*ConfigServerTemplate) AddServerTemplatesConfiguration

func (c *ConfigServerTemplate) AddServerTemplatesConfiguration(payload []byte, TransactionID string, BackendName string) (*http.Response, []byte, error)

AddServerTemplatesConfiguration adds a ServerTemplates configuration.

func (*ConfigServerTemplate) DeleteServerTemplatesConfiguration

func (c *ConfigServerTemplate) DeleteServerTemplatesConfiguration(ServerTemplatesName string, TransactionID string, BackendName string) (*http.Response, []byte, error)

DeleteServerTemplatesConfiguration deletes a ServerTemplates configuration.

func (*ConfigServerTemplate) GetAServerTemplatesConfiguration

func (c *ConfigServerTemplate) GetAServerTemplatesConfiguration(ServerTemplatesName string, TransactionID string, BackendName string) (*http.Response, []byte, error)

GetAServerTemplatesConfiguration returns the configuration of a ServerTemplates.

func (*ConfigServerTemplate) UpdateServerTemplatesConfiguration

func (c *ConfigServerTemplate) UpdateServerTemplatesConfiguration(ServerTemplatesName string, payload []byte, TransactionID string, BackendName string) (*http.Response, []byte, error)

UpdateServerTemplatesConfiguration updates a ServerTemplates configuration.

type ServerTemplatePayload

type ServerTemplatePayload struct {
	Prefix     string `json:"prefix"`
	Fqdn       string `json:"fqdn"`
	NumOrRange string `json:"num_or_range"`
	Port       int    `json:"port"`
}

Jump to

Keyboard shortcuts

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