Documentation ¶
Index ¶
- Constants
- func Unmarshal(data string, out interface{}) error
- type BigIP
- func (bigip *BigIP) AddMonitorToPool(poolName, monitorName string) error
- func (bigip *BigIP) AddPoolMember(poolName, nodeName, monitorName string, port int) error
- func (bigip *BigIP) AddSecurityFWPolicyRule(firewallPolicyName, ruleName, action string, targetPort int) error
- func (bigip *BigIP) AddVirtualServerProfile(vsName, profileName, context string) error
- func (bigip *BigIP) ApplyPolicyToVirtualServer(vsName, policyName string) error
- func (bigip *BigIP) Close()
- func (bigip *BigIP) CreateNode(name, ipaddr string) error
- func (bigip *BigIP) CreatePool(name string) error
- func (bigip *BigIP) CreateSecurityFWPolicy(firewallPolicyName string) error
- func (bigip *BigIP) CreateVirtualServer(vsName, poolName, targetVIP, defaultProfileName string, targetPort int) error
- func (bigip *BigIP) DeleteNode(name string) error
- func (bigip *BigIP) DeletePool(name string) error
- func (bigip *BigIP) DeletePoolMember(poolName, nodeName string, port int) error
- func (bigip *BigIP) DeleteVirtualServer(vsName string) error
- func (bigip *BigIP) DeleteVirtualServerProfile(vsName, profileName, context string) error
- func (bigip *BigIP) DisableNode(name string) error
- func (bigip *BigIP) DisablePoolMember(poolName, nodeName string, port int) error
- func (bigip *BigIP) EnableNode(name string) error
- func (bigip *BigIP) EnablePoolMember(poolName, nodeName string, port int) error
- func (bigip *BigIP) ExecuteCommand(cmd string) (string, error)
- func (bigip *BigIP) GetAllNodes() ([]Node, error)
- func (bigip *BigIP) GetAllPools() ([]Pool, error)
- func (bigip *BigIP) GetAllVirtualServers() ([]VirtualServer, error)
- func (bigip *BigIP) GetNode(name string) (*Node, error)
- func (bigip *BigIP) GetPool(name string) (*Pool, error)
- func (bigip *BigIP) GetVirtualServer(name string) (*VirtualServer, error)
- func (bigip *BigIP) RouteAdvertisementEnabled(targetVIP string) error
- func (bigip *BigIP) Save() error
- type Lexer
- type Node
- type Pool
- type PoolMember
- type Profile
- type SSH
- type Token
- type VirtualServer
Constants ¶
const EOF = 57347
const IDENT = 57352
const ILLEGAL = 57346
const LTM = 57353
const L_BRACE = 57350
const NEWLINE = 57349
const R_BRACE = 57351
const WS = 57348
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BigIP ¶
type BigIP struct {
// contains filtered or unexported fields
}
BigIP is a struct for session state
func GenSession ¶
GenSession handles either Password or SSH Key based..
func NewKeySession ¶
NewKeySession is NewSession plus key handling
func NewSession ¶
NewSession sets up new SSH session to BIG-IP TMSH
func (*BigIP) AddMonitorToPool ¶
DeletePoolMember adds a monitor to pool.
func (*BigIP) AddPoolMember ¶
DeletePoolMember adds a new pool member.
func (*BigIP) AddSecurityFWPolicyRule ¶
func (*BigIP) AddVirtualServerProfile ¶
AddVirtualServerProfile adds a profile to a virtual server.
func (*BigIP) ApplyPolicyToVirtualServer ¶
ApplyPolicyToVirtualServer applies a policy to a virtual server.
func (*BigIP) CreateNode ¶
CreateNode creates a new node.
func (*BigIP) CreatePool ¶
CreatePool creates a new pool.
func (*BigIP) CreateSecurityFWPolicy ¶
func (*BigIP) CreateVirtualServer ¶
func (bigip *BigIP) CreateVirtualServer(vsName, poolName, targetVIP, defaultProfileName string, targetPort int) error
CreateVirtualServer creates a virtual server.
func (*BigIP) DeleteNode ¶
DeleteNode removes a node.
func (*BigIP) DeletePool ¶
DeletePool removes a pool.
func (*BigIP) DeletePoolMember ¶
DeletePoolMember removes a pool member.
func (*BigIP) DeleteVirtualServer ¶
DeleteVirtualServer removes a virtual server.
func (*BigIP) DeleteVirtualServerProfile ¶
DeleteVirtualServerProfile removes a profile from a virtual server.
func (*BigIP) DisableNode ¶
DisableNode changes the status of a node to disable.
func (*BigIP) DisablePoolMember ¶
DisablePoolMember changes the status of pool member to disable.
func (*BigIP) EnableNode ¶
EnableNode changes the status of a node to enable.
func (*BigIP) EnablePoolMember ¶
EnablePoolMember changes the status of pool member to enable.
func (*BigIP) ExecuteCommand ¶
ExecuteCommand is used to execute any TMSH commands
func (*BigIP) GetAllNodes ¶
GetAllNodes returns a list of all nodes.
func (*BigIP) GetAllPools ¶
GetAllPools returns a list of all pools
func (*BigIP) GetAllVirtualServers ¶
func (bigip *BigIP) GetAllVirtualServers() ([]VirtualServer, error)
GetAllVirtualServers returns a list of all virtual servers
func (*BigIP) GetVirtualServer ¶
func (bigip *BigIP) GetVirtualServer(name string) (*VirtualServer, error)
GetVirtualServer gets a virtual server by name. Rerutn nil if the virtual server does not found.
func (*BigIP) RouteAdvertisementEnabled ¶
type Node ¶
type Node struct { Name string `ltm:"name"` Addr string `ltm:"addr"` MonitorRule string `ltm:"monitor-rule"` MonitorStatus string `ltm:"monitor-status"` EnabledState string `ltm:"status.enabled-state"` }
Node contains information about each node
type Pool ¶
type Pool struct { ActiveMemberCount int `ltm:"active-member-cnt"` Name string `ltm:"name"` MonitorRule string `ltm:"monitor-rule"` AvailabilityState string `ltm:"status.availability-state"` EnabledState string `ltm:"status.enabled-state"` StatusReason string `ltm:"status.status-reason"` PoolMembers []PoolMember `ltm:"members"` }
Pool contains information about each Pool
type PoolMember ¶
type PoolMember struct { Name string `ltm:"node-name"` Addr string `ltm:"addr"` Port int `ltm:"port"` MonitorRule string `ltm:"monitor-rule"` MonitorStatus string `ltm:"monitor-status"` EnabledState string `ltm:"status.enabled-state"` AvailabilityState string `ltm:"status.availability-state"` StatusReason string `ltm:"status.status-reason"` }
Pool contains information about each pool member in a pool
type VirtualServer ¶
type VirtualServer struct { Name string `ltm:"name"` Destination string `ltm:"destination"` IpProtocol string `ltm:"ip-protocol"` Mask string `ltm:"mask"` Partition string `ltm:"partition"` Pool string `ltm:"pool"` Profiles map[string]Profile `ltm:"profiles"` }
VirtualServer contains information about each virtual server