cache

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 DataSourceHaproxyCache

func DataSourceHaproxyCache() *schema.Resource

func ResourceHaproxyCache

func ResourceHaproxyCache() *schema.Resource

func TestHaproxyCache

func TestHaproxyCache(t *testing.T)

Types

type CachePayload

type CachePayload struct {
	Name                string `json:"name"`
	MaxAge              int    `json:"max_age"`
	MaxObjectSize       int    `json:"max_object_size"`
	MaxSecondaryEntries int    `json:"max_secondary_entries"`
	ProcessVary         bool   `json:"process_vary"`
	TotalMaxSize        int    `json:"total_max_size"`
}

type ConfigCache

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

Config defines variable for haproxy configuration

func (*ConfigCache) AddCacheConfiguration

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

AddCacheConfiguration adds a Cache configuration.

func (*ConfigCache) DeleteCacheConfiguration

func (c *ConfigCache) DeleteCacheConfiguration(CacheName string, TransactionID string) (*http.Response, error)

DeleteCacheConfiguration deletes a Cache configuration.

func (*ConfigCache) GetACacheConfiguration

func (c *ConfigCache) GetACacheConfiguration(CacheName string, TransactionID string) (*http.Response, error)

GetACacheConfiguration returns the configuration of a Cache.

func (*ConfigCache) UpdateCacheConfiguration

func (c *ConfigCache) UpdateCacheConfiguration(CacheName string, payload []byte, TransactionID string) (*http.Response, error)

UpdateCacheConfiguration updates a Cache configuration.

Jump to

Keyboard shortcuts

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