Documentation ¶
Index ¶
- func CreateMember(t *testing.T, client *gophercloud.ServiceClient, poolID string) (*members.Member, error)
- func CreateMonitor(t *testing.T, client *gophercloud.ServiceClient) (*monitors.Monitor, error)
- func CreatePool(t *testing.T, client *gophercloud.ServiceClient, subnetID string) (*pools.Pool, error)
- func CreateVIP(t *testing.T, client *gophercloud.ServiceClient, subnetID, poolID string) (*vips.VirtualIP, error)
- func DeleteMember(t *testing.T, client *gophercloud.ServiceClient, memberID string)
- func DeleteMonitor(t *testing.T, client *gophercloud.ServiceClient, monitorID string)
- func DeletePool(t *testing.T, client *gophercloud.ServiceClient, poolID string)
- func DeleteVIP(t *testing.T, client *gophercloud.ServiceClient, vipID string)
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.