Implement StatsProvider using CRI stats

This commit is contained in:
Yang Guo
2017-08-31 15:37:04 -07:00
parent 7be29bd9b6
commit dfea03d920
11 changed files with 601 additions and 50 deletions

View File

@@ -88,3 +88,8 @@ func (c *Mock) HasDedicatedImageFs() (bool, error) {
args := c.Called()
return args.Get(0).(bool), args.Error(1)
}
func (c *Mock) GetFsInfoByFsUUID(uuid string) (cadvisorapiv2.FsInfo, error) {
args := c.Called(uuid)
return args.Get(0).(cadvisorapiv2.FsInfo), args.Error(1)
}