Documentation ¶
Index ¶
- type A10Port
- type A10SGMember
- type A10Server
- type A10ServiceGroup
- type A10VServer
- type A10VirtualPort
- type Client
- func (c *Client) Get(method string) ([]byte, error)
- func (c *Client) Login(username, password string) error
- func (c *Client) Logout() error
- func (c *Client) Post(method, body string) ([]byte, error)
- func (c *Client) ServerCreate(name, host string, ports []string) error
- func (c *Client) ServerDelete(name string) error
- func (c *Client) ServerList() []A10Server
- func (c *Client) ServerUpdate(name, host string, ports []string) error
- func (c *Client) ServiceGroupCreate(name, protocol string, members []string) error
- func (c *Client) ServiceGroupDelete(name string) error
- func (c *Client) ServiceGroupList() []A10ServiceGroup
- func (c *Client) ServiceGroupUpdate(name, protocol string, members []string) error
- func (c *Client) VirtualServerCreate(name, address string, virtualPorts []string) error
- func (c *Client) VirtualServerDelete(name string) error
- func (c *Client) VirtualServerList() []A10VServer
- func (c *Client) VirtualServerUpdate(name, address string, virtualPorts []string) error
- type FuncPrintf
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A10SGMember ¶
A10SGMember is a service group member for A10ServiceGroup
type A10ServiceGroup ¶
type A10ServiceGroup struct { Name string Protocol string Members []A10SGMember }
A10ServiceGroup is a service group for ServiceGroupList()
type A10VServer ¶
type A10VServer struct { Name string Address string VirtualPorts []A10VirtualPort }
A10VServer is a virtual server for VirtualServerList()
type A10VirtualPort ¶
A10VirtualPort is a virtual port for A10VServer
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an api client
func (*Client) ServerCreate ¶
ServerCreate creates new server. ports is list of "portName,portProtocol"
func (*Client) ServerDelete ¶
ServerDelete deletes an existing server
func (*Client) ServerList ¶
ServerList retrieves the full server list
func (*Client) ServerUpdate ¶
ServerUpdate updates server. ports is list of "portName,portProtocol"
func (*Client) ServiceGroupCreate ¶
ServiceGroupCreate creates new service group members is list of "serverName,portNumber"
func (*Client) ServiceGroupDelete ¶
ServiceGroupDelete deletes an existing service group
func (*Client) ServiceGroupList ¶
func (c *Client) ServiceGroupList() []A10ServiceGroup
ServiceGroupList retrieves the full server group list
func (*Client) ServiceGroupUpdate ¶
ServiceGroupUpdate updates service group members is list of "serverName,portNumber"
func (*Client) VirtualServerCreate ¶
VirtualServerCreate creates new virtual server virtualPorts is list of "serviceGroup,port,protocol"
func (*Client) VirtualServerDelete ¶
VirtualServerDelete deletes an existing virtual server
func (*Client) VirtualServerList ¶
func (c *Client) VirtualServerList() []A10VServer
VirtualServerList retrieves the full virtual server list
type FuncPrintf ¶
type FuncPrintf func(format string, v ...interface{})
FuncPrintf is function type for debug Printf
type Options ¶
type Options struct { Debug bool // enable debugging DebugPrintf FuncPrintf // custom Printf function for debugging Dry bool // do not change anything }
Options specify parameters for the api client