filter

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 DataSourceHaproxyFilter

func DataSourceHaproxyFilter() *schema.Resource

func ResourceHaproxyFilter

func ResourceHaproxyFilter() *schema.Resource

func TestHaproxyFilter

func TestHaproxyFilter(t *testing.T)

Types

type ConfigFilter

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

Config defines variable for haproxy configuration

func (*ConfigFilter) AddFilterConfiguration

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

AddFilterConfiguration adds a Filter configuration.

func (*ConfigFilter) DeleteFilterConfiguration

func (c *ConfigFilter) DeleteFilterConfiguration(FilterIndexName int, TransactionID string, parentName string, parentType string) (*http.Response, error)

DeleteFilterConfiguration deletes a Filter configuration.

func (*ConfigFilter) GetAFilterConfiguration

func (c *ConfigFilter) GetAFilterConfiguration(FilterIndexName int, TransactionID string, parentName string, parentType string) (*http.Response, error)

GetAFilterConfiguration returns the configuration of a Filter.

func (*ConfigFilter) UpdateFilterConfiguration

func (c *ConfigFilter) UpdateFilterConfiguration(FilterIndexName int, payload []byte, TransactionID string, parentName string, parentType string) (*http.Response, error)

UpdateFilterConfiguration updates a Filter configuration.

type FilterPayload

type FilterPayload struct {
	Index              int    `json:"index"`
	AppName            string `json:"app_name"`
	BandwidthLimitName string `json:"bandwidth_limit_name"`
	CacheName          string `json:"cache_name"`
	DefaultLimit       int    `json:"default_limit"`
	DefaultPeriod      int    `json:"default_period"`
	Key                string `json:"key"`
	Limit              int    `json:"limit"`
	MinSize            int    `json:"min_size"`
	SpoeConfig         string `json:"spoe_config"`
	SpoeEngine         string `json:"spoe_engine"`
	Table              string `json:"table"`
	TraceHexdump       bool   `json:"trace_hexdump"`
	TraceName          string `json:"trace_name"`
	TraceRndForwarding bool   `json:"trace_rnd_forwarding"`
	TraceRndParsing    bool   `json:"trace_rnd_parsing"`
	Type               string `json:"type"`
}

Jump to

Keyboard shortcuts

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