v2

package
v0.14.1-0...-9eb17d5 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

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.

Jump to

Keyboard shortcuts

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