v2

package
v0.0.0-...-0732875 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

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.

func PrintVolume

func PrintVolume(t *testing.T, volume *volumes.Volume)

PrintVolume will print a volume and all of its attributes.

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.

Jump to

Keyboard shortcuts

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