resolvers

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 DataSourceHaproxyResolvers

func DataSourceHaproxyResolvers() *schema.Resource

func ResourceHaproxyResolvers

func ResourceHaproxyResolvers() *schema.Resource

Types

type ConfigResolvers

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

Config defines variable for haproxy configuration

func (*ConfigResolvers) AddResolversConfiguration

func (c *ConfigResolvers) AddResolversConfiguration(payload []byte, TransactionID string) (*http.Response, error)

AddResolversConfiguration adds a Resolvers configuration.

func (*ConfigResolvers) DeleteResolversConfiguration

func (c *ConfigResolvers) DeleteResolversConfiguration(ResolversName string, TransactionID string) (*http.Response, error)

DeleteResolversConfiguration deletes a Resolvers configuration.

func (*ConfigResolvers) GetAResolversConfiguration

func (c *ConfigResolvers) GetAResolversConfiguration(ResolversName string, TransactionID string) (*http.Response, error)

GetAResolversConfiguration returns the configuration of a Resolvers.

func (*ConfigResolvers) UpdateResolversConfiguration

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

UpdateResolversConfiguration updates a Resolvers configuration.

type MockConfigResolvers

type MockConfigResolvers struct {
	mock.Mock
}

type MockConfigTransaction

type MockConfigTransaction struct {
	mock.Mock
}

type ResolversPayload

type ResolversPayload struct {
	Name                string `json:"name"`
	AcceptedPayloadSize int    `json:"accepted_payload_size"`
	HoldNx              int    `json:"hold_nx"`
	HoldOther           int    `json:"hold_other"`
	HoldRefused         int    `json:"hold_refused"`
	HoldTimeout         int    `json:"hold_timeout"`
	HoldValid           int    `json:"hold_valid"`
	ParseResolvConf     bool   `json:"parse-resolv-conf"`
	ResolveRetries      int    `json:"resolve_retries"`
	TimeoutResolve      int    `json:"timeout_resolve"`
	TimeoutRetry        int    `json:"timeout_retry"`
}

Jump to

Keyboard shortcuts

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