nameserver

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 DataSourceHaproxyNameserver

func DataSourceHaproxyNameserver() *schema.Resource

func ResourceHaproxyNameserver

func ResourceHaproxyNameserver() *schema.Resource

Types

type ConfigNameserver

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

Config defines variable for haproxy configuration

func (*ConfigNameserver) AddNameserversConfiguration

func (c *ConfigNameserver) AddNameserversConfiguration(payload []byte, TransactionID string, ResolversName string) (*http.Response, []byte, error)

AddNameserversConfiguration adds a Nameservers configuration.

func (*ConfigNameserver) DeleteNameserversConfiguration

func (c *ConfigNameserver) DeleteNameserversConfiguration(NameserversName string, TransactionID string, ResolversName string) (*http.Response, []byte, error)

DeleteNameserversConfiguration deletes a Nameservers configuration.

func (*ConfigNameserver) GetANameserversConfiguration

func (c *ConfigNameserver) GetANameserversConfiguration(NameserversName string, TransactionID string, ResolversName string) (*http.Response, []byte, error)

GetANameserversConfiguration returns the configuration of a Nameservers.

func (*ConfigNameserver) UpdateNameserversConfiguration

func (c *ConfigNameserver) UpdateNameserversConfiguration(NameserversName string, payload []byte, TransactionID string, ResolversName string) (*http.Response, []byte, error)

UpdateNameserversConfiguration updates a Nameservers configuration.

type NameserverPayload

type NameserverPayload struct {
	Name    string `json:"name"`
	Address string `json:"address"`
	Port    int    `json:"port"`
}

Jump to

Keyboard shortcuts

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