Help us shape the future of Go! Take the 2026 Go Developer Survey

v2

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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