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 DriverTestCreateFromTemplate(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 DriverTestEcho(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestListLayers(t testing.TB, drivername string, driverOptions ...string)
- func DriverTestSetQuota(t *testing.T, drivername string)
- 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 ¶
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 ¶
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 ¶
DriverBenchDiffApplyN benchmarks calls to diff and apply together
func DriverBenchDiffBase ¶
DriverBenchDiffBase benchmarks calls to diff on a root layer
func DriverBenchDiffN ¶
DriverBenchDiffN benchmarks calls to diff on two layers with a provided number of files on the lower and upper layers.
func DriverBenchExists ¶
DriverBenchExists benchmarks calls to exist
func DriverBenchGetEmpty ¶
DriverBenchGetEmpty benchmarks calls to get on an empty layer
func DriverTestChanges ¶
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 DriverTestCreateFromTemplate ¶
DriverTestCreateFromTemplate Create a driver and template of a snap and verifies its contents.
func DriverTestCreateSnap ¶
DriverTestCreateSnap Create a driver and snap and verify.
func DriverTestDeepLayerRead ¶
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 ¶
DriverTestDiffApply tests diffing and applying produces the same layer
func DriverTestEcho ¶
DriverTestEcho tests that we can diff a layer correctly, focusing on trouble spots that NaiveDiff doesn't have
func DriverTestListLayers ¶ added in v1.47.0
DriverTestListLayers makes sure ListLayers() returns what we expected, nothing more, nothing less
func DriverTestSetQuota ¶
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.