haproxy

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient *resty.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(
	username string,
	password string,
	serverIP string,
	insecure bool,
) *Client

func (*Client) CreateMapEntrie

func (c *Client) CreateMapEntrie(entrie *MapEntrie, mapName string) (*MapEntrie, error)

func (*Client) DeleteMapEntrie

func (c *Client) DeleteMapEntrie(entrie *MapEntrie, mapName string) (*MapEntrie, error)

func (*Client) GetMapEntries

func (c *Client) GetMapEntries(mapName string) (*[]MapEntrie, error)

func (*Client) UpdateMapEntrie

func (c *Client) UpdateMapEntrie(entrie *MapEntrie, mapName string) (*MapEntrie, error)

type MapEntrie

type MapEntrie struct {
	Id    string `json:"id"`
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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