Documentation ¶
Index ¶
- func CreateListener(t *testing.T, client *gophercloud.ServiceClient, ...) (*listeners.Listener, error)
- func CreateLoadBalancer(t *testing.T, client *gophercloud.ServiceClient, subnetID string) (*loadbalancers.LoadBalancer, error)
- func CreateMember(t *testing.T, client *gophercloud.ServiceClient, ...) (*pools.Member, error)
- func CreateMonitor(t *testing.T, client *gophercloud.ServiceClient, ...) (*monitors.Monitor, error)
- func CreatePool(t *testing.T, client *gophercloud.ServiceClient, ...) (*pools.Pool, error)
- func DeleteListener(t *testing.T, client *gophercloud.ServiceClient, lbID, listenerID string)
- func DeleteLoadBalancer(t *testing.T, client *gophercloud.ServiceClient, lbID string)
- func DeleteMember(t *testing.T, client *gophercloud.ServiceClient, lbID, poolID, memberID string)
- func DeleteMonitor(t *testing.T, client *gophercloud.ServiceClient, lbID, monitorID string)
- func DeletePool(t *testing.T, client *gophercloud.ServiceClient, lbID, poolID string)
- func PrintListener(t *testing.T, listener *listeners.Listener)
- func PrintLoadBalancer(t *testing.T, lb *loadbalancers.LoadBalancer)
- func PrintMember(t *testing.T, member *pools.Member)
- func PrintMonitor(t *testing.T, monitor *monitors.Monitor)
- func PrintPool(t *testing.T, pool *pools.Pool)
- func WaitForLoadBalancerState(client *gophercloud.ServiceClient, lbID, status string, secs int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateListener ¶
func CreateListener(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer) (*listeners.Listener, error)
CreateListener will create a listener for a given load balancer on a random port with a random name. An error will be returned if the listener could not be created.
func CreateLoadBalancer ¶
func CreateLoadBalancer(t *testing.T, client *gophercloud.ServiceClient, subnetID string) (*loadbalancers.LoadBalancer, error)
CreateLoadBalancer will create a load balancer with a random name on a given subnet. An error will be returned if the loadbalancer could not be created.
func CreateMember ¶
func CreateMember(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer, pool *pools.Pool, subnetID, subnetCIDR string) (*pools.Member, error)
CreateMember will create a member with a random name, port, address, and weight. An error will be returned if the member could not be created.
func CreateMonitor ¶
func CreateMonitor(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer, pool *pools.Pool) (*monitors.Monitor, error)
CreateMonitor will create a monitor with a random name for a specific pool. An error will be returned if the monitor could not be created.
func CreatePool ¶
func CreatePool(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer) (*pools.Pool, error)
CreatePool will create a pool with a random name with a specified listener and loadbalancer. An error will be returned if the pool could not be created.
func DeleteListener ¶
func DeleteListener(t *testing.T, client *gophercloud.ServiceClient, lbID, listenerID string)
DeleteListener will delete a specified listener. A fatal error will occur if the listener could not be deleted. This works best when used as a deferred function.
func DeleteLoadBalancer ¶
func DeleteLoadBalancer(t *testing.T, client *gophercloud.ServiceClient, lbID string)
DeleteLoadBalancer will delete a specified loadbalancer. A fatal error will occur if the loadbalancer could not be deleted. This works best when used as a deferred function.
func DeleteMember ¶
func DeleteMember(t *testing.T, client *gophercloud.ServiceClient, lbID, poolID, memberID string)
DeleteMember will delete a specified member. A fatal error will occur if the member could not be deleted. This works best when used as a deferred function.
func DeleteMonitor ¶
func DeleteMonitor(t *testing.T, client *gophercloud.ServiceClient, lbID, monitorID string)
DeleteMonitor will delete a specified monitor. A fatal error will occur if the monitor could not be deleted. This works best when used as a deferred function.
func DeletePool ¶
func DeletePool(t *testing.T, client *gophercloud.ServiceClient, lbID, poolID string)
DeletePool will delete a specified pool. A fatal error will occur if the pool could not be deleted. This works best when used as a deferred function.
func PrintListener ¶
PrintListener will print a listener and all of its attributes.
func PrintLoadBalancer ¶
func PrintLoadBalancer(t *testing.T, lb *loadbalancers.LoadBalancer)
PrintLoadBalancer will print a load balancer and all of its attributes.
func PrintMember ¶
PrintMember will print a member and all of its attributes.
func PrintMonitor ¶
PrintMonitor will print a monitor and all of its attributes.
func WaitForLoadBalancerState ¶
func WaitForLoadBalancerState(client *gophercloud.ServiceClient, lbID, status string, secs int) error
WaitForLoadBalancerState will wait until a loadbalancer reaches a given state.
Types ¶
This section is empty.