Documentation ¶
Overview ¶
Package v2 contains common functions for creating imageservice 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 CreateEmptyImage ¶
func CreateEmptyImage(t *testing.T, client *gophercloud.ServiceClient) (*images.Image, error)
CreateEmptyImage will create an image, but with no actual image data. An error will be returned if an image was unable to be created.
func DeleteImage ¶
func DeleteImage(t *testing.T, client *gophercloud.ServiceClient, image *images.Image)
DeleteImage deletes an image. A fatal error will occur if the image failed to delete. This works best when used as a deferred function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.