v1

package
v1.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1 contains common functions for creating block storage based resources for use in acceptance tests. See the `*_test.go` files for example usages.

Package v1 contains openstack cinder acceptance tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSnapshot

func CreateSnapshot(t *testing.T, client *gophercloud.ServiceClient, volume *volumes.Volume) (*snapshots.Snapshot, error)

CreateSnapshot will create a volume snapshot based off of a given volume and with a random name. An error will be returned if the snapshot failed to be created.

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 CreateVolumeType

func CreateVolumeType(t *testing.T, client *gophercloud.ServiceClient) (*volumetypes.VolumeType, error)

CreateVolumeType will create a volume type with a random name. An error will be returned if the volume type was unable to be created.

func DeleteSnapshotshot

func DeleteSnapshotshot(t *testing.T, client *gophercloud.ServiceClient, snapshot *snapshots.Snapshot)

DeleteSnapshot will delete a snapshot. A fatal error will occur if the snapshot failed to be deleted. This works best when used as a deferred function.

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.

func DeleteVolumeType

func DeleteVolumeType(t *testing.T, client *gophercloud.ServiceClient, volumeType *volumetypes.VolumeType)

DeleteVolumeType will delete a volume type. A fatal error will occur if the volume type failed to be deleted. This works best when used as a deferred function.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL