Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultStatsEq ¶
func DefaultStatsEq(a, b *info.ContainerStats) bool
This function is useful because we do not require precise time representation.
func StorageDriverFillRandomStatsFunc ¶
func StorageDriverFillRandomStatsFunc( containerName string, N int, driver TestStorageDriver, t *testing.T, )
This function will generate random stats and write them into the storage. The function will not close the driver
Types ¶
type MockStorageDriver ¶
func (*MockStorageDriver) AddStats ¶
func (self *MockStorageDriver) AddStats(cInfo *info.ContainerInfo, stats *info.ContainerStats) error
func (*MockStorageDriver) Close ¶
func (self *MockStorageDriver) Close() error
type TestStorageDriver ¶
type TestStorageDriver interface { StatsEq(a *info.ContainerStats, b *info.ContainerStats) bool storage.StorageDriver }
Click to show internal directories.
Click to hide internal directories.