Documentation ¶
Overview ¶
Package extensions contains common functions for creating block storage resources that are extensions of the block storage API. See the `*_test.go` files for example usages.
Index ¶
- func CreateUploadImage(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume) (volumeactions.VolumeImage, error)
- func CreateVolumeAttach(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume, ...) error
- func CreateVolumeReserve(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume) error
- func DeleteUploadedImage(t *testing.T, client *gophercloud.ServiceClient, imageName string) error
- func DeleteVolumeAttach(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume)
- func DeleteVolumeReserve(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume)
- func ExtendVolumeSize(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUploadImage ¶
func CreateUploadImage(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume) (volumeactions.VolumeImage, error)
CreateUploadImage will upload volume it as volume-baked image. An name of new image or err will be returned
func CreateVolumeAttach ¶
func CreateVolumeAttach(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume, server *servers.Server) error
CreateVolumeAttach will attach a volume to an instance. An error will be returned if the attachment failed.
func CreateVolumeReserve ¶
func CreateVolumeReserve(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume) error
CreateVolumeReserve creates a volume reservation. An error will be returned if the reservation failed.
func DeleteUploadedImage ¶
func DeleteUploadedImage(t *testing.T, client *gophercloud.ServiceClient, imageName string) error
DeleteUploadedImage deletes uploaded image. An error will be returned if the deletion request failed.
func DeleteVolumeAttach ¶
func DeleteVolumeAttach(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume)
DeleteVolumeAttach will detach a volume from an instance. A fatal error will occur if the snapshot failed to be deleted. This works best when used as a deferred function.
func DeleteVolumeReserve ¶
func DeleteVolumeReserve(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume)
DeleteVolumeReserve deletes a volume reservation. A fatal error will occur if the deletion request failed. This works best when used as a deferred function.
func ExtendVolumeSize ¶
func ExtendVolumeSize(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume) error
ExtendVolumeSize will extend the size of a volume.
Types ¶
This section is empty.