Documentation ¶
Index ¶
- func DriverBenchDeepLayerDiff(b *testing.B, layerCount int, drivername string, driveroptions ...string)
- func DriverBenchDeepLayerRead(b *testing.B, layerCount int, drivername string, driveroptions ...string)
- func DriverBenchDiffApplyN(b *testing.B, fileCount int, drivername string, driveroptions ...string)
- func DriverBenchDiffBase(b *testing.B, drivername string, driveroptions ...string)
- func DriverBenchDiffN(b *testing.B, bottom, top int, drivername string, driveroptions ...string)
- func DriverBenchExists(b *testing.B, drivername string, driveroptions ...string)
- func DriverBenchGetEmpty(b *testing.B, drivername string, driveroptions ...string)
- func DriverTestChanges(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestCreateBase(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestCreateEmpty(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestCreateSnap(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestDeepLayerRead(t testing.TB, layerCount int, drivername string, driverOptions ...string)
- func DriverTestDiffApply(t testing.TB, fileCount int, drivername string, driverOptions ...string)
- func DriverTestSetQuota(t *testing.T, drivername string, required bool)
- func GetDriver(t testing.TB, name string, options ...string) graphdriver.Driver
- func PutDriver(t testing.TB)
- type Driver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DriverBenchDeepLayerDiff ¶ added in v1.13.1
func DriverBenchDeepLayerDiff(b *testing.B, layerCount int, drivername string, driveroptions ...string)
DriverBenchDeepLayerDiff benchmarks calls to diff on top of a given number of layers.
func DriverBenchDeepLayerRead ¶ added in v1.13.1
func DriverBenchDeepLayerRead(b *testing.B, layerCount int, drivername string, driveroptions ...string)
DriverBenchDeepLayerRead benchmarks calls to read a file under a given number of layers.
func DriverBenchDiffApplyN ¶ added in v1.13.1
DriverBenchDiffApplyN benchmarks calls to diff and apply together
func DriverBenchDiffBase ¶ added in v1.13.1
DriverBenchDiffBase benchmarks calls to diff on a root layer
func DriverBenchDiffN ¶ added in v1.13.1
DriverBenchDiffN benchmarks calls to diff on two layers with a provided number of files on the lower and upper layers.
func DriverBenchExists ¶ added in v1.13.1
DriverBenchExists benchmarks calls to exist
func DriverBenchGetEmpty ¶ added in v1.13.1
DriverBenchGetEmpty benchmarks calls to get on an empty layer
func DriverTestChanges ¶ added in v1.13.1
DriverTestChanges tests computed changes on a layer matches changes made
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 DriverTestDeepLayerRead ¶ added in v1.13.1
func DriverTestDeepLayerRead(t testing.TB, layerCount int, drivername string, driverOptions ...string)
DriverTestDeepLayerRead reads a file from a lower layer under a given number of layers
func DriverTestDiffApply ¶ added in v1.13.1
DriverTestDiffApply tests diffing and applying produces the same layer
func DriverTestSetQuota ¶ added in v1.13.1
DriverTestSetQuota Create a driver and test setting quota.
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.