lbaas_v2

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 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.

Jump to

Keyboard shortcuts

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