Documentation ¶
Index ¶
- func StorageDriverFillRandomStatsFunc(containerName string, N int, driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestMaxMemoryUsage(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestNoRecentStats(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestNoSamples(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestPercentiles(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestPercentilesWithoutSample(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestPercentilesWithoutStats(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestRetrieveAllRecentStats(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestRetrievePartialRecentStats(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestSampleCpuUsage(driver storage.StorageDriver, t *testing.T)
- func StorageDriverTestSamplesWithoutSample(driver storage.StorageDriver, t *testing.T)
- type MockStorageDriver
- func (self *MockStorageDriver) AddStats(ref info.ContainerReference, stats *info.ContainerStats) error
- func (self *MockStorageDriver) Close() error
- func (self *MockStorageDriver) Percentiles(containerName string, cpuUsagePercentiles []int, memUsagePercentiles []int) (*info.ContainerStatsPercentiles, error)
- func (self *MockStorageDriver) RecentStats(containerName string, numStats int) ([]*info.ContainerStats, error)
- func (self *MockStorageDriver) Samples(containerName string, numSamples int) ([]*info.ContainerStatsSample, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StorageDriverFillRandomStatsFunc ¶
func StorageDriverFillRandomStatsFunc( containerName string, N int, driver storage.StorageDriver, t *testing.T, )
This function will generate random stats and write them into the storage. The function will not close the driver
func StorageDriverTestMaxMemoryUsage ¶
func StorageDriverTestMaxMemoryUsage(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestNoRecentStats ¶
func StorageDriverTestNoRecentStats(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestNoSamples ¶
func StorageDriverTestNoSamples(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestPercentiles ¶
func StorageDriverTestPercentiles(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestPercentilesWithoutSample ¶
func StorageDriverTestPercentilesWithoutSample(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestPercentilesWithoutStats ¶
func StorageDriverTestPercentilesWithoutStats(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestRetrieveAllRecentStats ¶
func StorageDriverTestRetrieveAllRecentStats(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestRetrievePartialRecentStats ¶
func StorageDriverTestRetrievePartialRecentStats(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestSampleCpuUsage ¶
func StorageDriverTestSampleCpuUsage(driver storage.StorageDriver, t *testing.T)
func StorageDriverTestSamplesWithoutSample ¶
func StorageDriverTestSamplesWithoutSample(driver storage.StorageDriver, t *testing.T)
Types ¶
type MockStorageDriver ¶
func (*MockStorageDriver) AddStats ¶
func (self *MockStorageDriver) AddStats(ref info.ContainerReference, stats *info.ContainerStats) error
func (*MockStorageDriver) Close ¶
func (self *MockStorageDriver) Close() error
func (*MockStorageDriver) Percentiles ¶
func (self *MockStorageDriver) Percentiles( containerName string, cpuUsagePercentiles []int, memUsagePercentiles []int, ) (*info.ContainerStatsPercentiles, error)
func (*MockStorageDriver) RecentStats ¶
func (self *MockStorageDriver) RecentStats(containerName string, numStats int) ([]*info.ContainerStats, error)
func (*MockStorageDriver) Samples ¶
func (self *MockStorageDriver) Samples(containerName string, numSamples int) ([]*info.ContainerStatsSample, error)
Click to show internal directories.
Click to hide internal directories.