graphtest

package
v1.10.2-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverTestCreateBase

func DriverTestCreateBase(t *testing.T, drivername string)

DriverTestCreateBase create a base driver and verify.

func DriverTestCreateEmpty

func DriverTestCreateEmpty(t *testing.T, drivername string)

DriverTestCreateEmpty creates an new image and verifies it is empty and the right metadata

func DriverTestCreateSnap

func DriverTestCreateSnap(t *testing.T, drivername string)

DriverTestCreateSnap Create a driver and snap and verify.

func GetDriver

func GetDriver(t *testing.T, name string) graphdriver.Driver

GetDriver create a new driver with given name or return a existing driver with the name updating the reference count.

func InitLoopbacks added in v1.4.0

func InitLoopbacks() error

InitLoopbacks ensures that the loopback devices are properly created within the system running the device mapper tests.

func PutDriver

func PutDriver(t *testing.T)

PutDriver removes the driver if it is no longer used and updates the reference count.

Types

type Driver

type Driver struct {
	graphdriver.Driver
	// contains filtered or unexported fields
}

Driver conforms to graphdriver.Driver interface and contains information such as root and reference count of the number of clients using it. This helps in testing drivers added into the framework.

Jump to

Keyboard shortcuts

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