acl

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 DataSourceHaproxyAcl

func DataSourceHaproxyAcl() *schema.Resource

func ResourceHaproxyAcl

func ResourceHaproxyAcl() *schema.Resource

func TestHaproxyAcl

func TestHaproxyAcl(t *testing.T)

Types

type AclPayload

type AclPayload struct {
	AclName   string `json:"acl_name"`
	Criterion string `json:"criterion"`
	Index     int    `json:"index"`
	Value     string `json:"value"`
}

type ConfigAcl

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

Config defines variable for haproxy configuration

func (*ConfigAcl) AddAclConfiguration

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

AddAclConfiguration adds a Acl configuration.

func (*ConfigAcl) DeleteAclConfiguration

func (c *ConfigAcl) DeleteAclConfiguration(AclIndexName int, TransactionID string, parentName string, parentType string) (*http.Response, error)

DeleteAclConfiguration deletes a Acl configuration.

func (*ConfigAcl) GetAAclConfiguration

func (c *ConfigAcl) GetAAclConfiguration(AclIndexName int, TransactionID string, parentName string, parentType string) (*http.Response, error)

GetAAclConfiguration returns the configuration of a Acl.

func (*ConfigAcl) UpdateAclConfiguration

func (c *ConfigAcl) UpdateAclConfiguration(AclIndexName int, payload []byte, TransactionID string, parentName string, parentType string) (*http.Response, error)

UpdateAclConfiguration updates a Acl configuration.

Jump to

Keyboard shortcuts

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