Documentation ¶
Index ¶
- func CascadeDeleteLoadBalancer(t *testing.T, client *gophercloud.ServiceClient, lbID string)
- func CreateL7Policy(t *testing.T, client *gophercloud.ServiceClient, listener *listeners.Listener, ...) (*l7policies.L7Policy, error)
- func CreateL7Rule(t *testing.T, client *gophercloud.ServiceClient, policyID string, ...) (*l7policies.Rule, error)
- func CreateListener(t *testing.T, client *gophercloud.ServiceClient, ...) (*listeners.Listener, error)
- func CreateListenerHTTP(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 CreatePoolHTTP(t *testing.T, client *gophercloud.ServiceClient, ...) (*pools.Pool, error)
- func DeleteL7Policy(t *testing.T, client *gophercloud.ServiceClient, lbID, policyID string)
- func DeleteL7Rule(t *testing.T, client *gophercloud.ServiceClient, lbID, policyID, ruleID string)
- 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 WaitForLoadBalancerState(client *gophercloud.ServiceClient, lbID, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CascadeDeleteLoadBalancer ¶
func CascadeDeleteLoadBalancer(t *testing.T, client *gophercloud.ServiceClient, lbID string)
CascadeDeleteLoadBalancer will perform a cascading delete on a loadbalancer. A fatal error will occur if the loadbalancer could not be deleted. This works best when used as a deferred function.
func CreateL7Policy ¶
func CreateL7Policy(t *testing.T, client *gophercloud.ServiceClient, listener *listeners.Listener, lb *loadbalancers.LoadBalancer) (*l7policies.L7Policy, error)
CreateL7Policy will create a l7 policy with a random name with a specified listener and loadbalancer. An error will be returned if the l7 policy could not be created.
func CreateL7Rule ¶
func CreateL7Rule(t *testing.T, client *gophercloud.ServiceClient, policyID string, lb *loadbalancers.LoadBalancer) (*l7policies.Rule, error)
CreateL7Rule creates a l7 rule for specified l7 policy.
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 CreateListenerHTTP ¶
func CreateListenerHTTP(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer) (*listeners.Listener, error)
CreateListenerHTTP will create an HTTP-based 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, tags []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 CreatePoolHTTP ¶
func CreatePoolHTTP(t *testing.T, client *gophercloud.ServiceClient, lb *loadbalancers.LoadBalancer) (*pools.Pool, error)
CreatePoolHTTP will create an HTTP-based pool with a random name with a specified listener and loadbalancer. An error will be returned if the pool could not be created.
func DeleteL7Policy ¶
func DeleteL7Policy(t *testing.T, client *gophercloud.ServiceClient, lbID, policyID string)
DeleteL7Policy will delete a specified l7 policy. A fatal error will occur if the l7 policy could not be deleted. This works best when used as a deferred function.
func DeleteL7Rule ¶
func DeleteL7Rule(t *testing.T, client *gophercloud.ServiceClient, lbID, policyID, ruleID string)
DeleteL7Rule will delete a specified l7 rule. A fatal error will occur if the l7 rule could not be deleted. This works best when used as a deferred function.
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 WaitForLoadBalancerState ¶
func WaitForLoadBalancerState(client *gophercloud.ServiceClient, lbID, status string) error
WaitForLoadBalancerState will wait until a loadbalancer reaches a given state.
Types ¶
This section is empty.