Documentation ¶
Index ¶
- func DriverTestCreateBase(t *testing.T, drivername string)
- func DriverTestCreateEmpty(t *testing.T, drivername string)
- func DriverTestCreateSnap(t *testing.T, drivername string)
- func DriverTestSetQuota(t *testing.T, drivername string)
- func GetDriver(t *testing.T, name string) graphdriver.Driver
- func InitLoopbacks() error
- func PutDriver(t *testing.T)
- type Driver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriverTestCreateBase ¶
DriverTestCreateBase create a base driver and verify.
func DriverTestCreateEmpty ¶
DriverTestCreateEmpty creates a new image and verifies it is empty and the right metadata
func DriverTestCreateSnap ¶
DriverTestCreateSnap Create a driver and snap and verify.
func DriverTestSetQuota ¶
DriverTestSetQuota Create a driver and test setting quota.
func GetDriver ¶
func GetDriver(t *testing.T, name string) graphdriver.Driver
GetDriver create a new driver with given name or return an existing driver with the name updating the reference count.
func InitLoopbacks ¶
func InitLoopbacks() error
InitLoopbacks ensures that the loopback devices are properly created within the system running the device mapper tests.
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.