lbaas

package
Version: 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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMember

func CreateMember(t *testing.T, client *gophercloud.ServiceClient, poolID string) (*members.Member, error)

CreateMember will create a load balancer member in a specified pool on a random port. An error will be returned if the member could not be created.

func CreateMonitor

func CreateMonitor(t *testing.T, client *gophercloud.ServiceClient) (*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, subnetID string) (*pools.Pool, error)

CreatePool will create a pool with a random name. An error will be returned if the pool could not be deleted.

func CreateVIP

func CreateVIP(t *testing.T, client *gophercloud.ServiceClient, subnetID, poolID string) (*vips.VirtualIP, error)

CreateVIP will create a vip with a random name and a random port in a specified subnet and pool. An error will be returned if the vip could not be created.

func DeleteMember

func DeleteMember(t *testing.T, client *gophercloud.ServiceClient, 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, 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, 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 DeleteVIP

func DeleteVIP(t *testing.T, client *gophercloud.ServiceClient, vipID string)

DeleteVIP will delete a specified vip. A fatal error will occur if the vip could not be deleted. This works best when used as a deferred function.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL