Documentation ¶
Overview ¶
Package v2 contains common functions for creating block storage based resources for use in acceptance tests. See the `*_test.go` files for example usages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateVolume ¶
func CreateVolume(t *testing.T, client *gophercloud.ServiceClient) (*volumes.Volume, error)
CreateVolume will create a volume with a random name and size of 1GB. An error will be returned if the volume was unable to be created.
func DeleteVolume ¶
func DeleteVolume(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume)
DeleteVolume will delete a volume. A fatal error will occur if the volume failed to be deleted. This works best when used as a deferred function.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package extensions contains common functions for creating block storage resources that are extensions of the block storage API.
|
Package extensions contains common functions for creating block storage resources that are extensions of the block storage API. |
Click to show internal directories.
Click to hide internal directories.