Adding events API to cadvisor interface.

This commit is contained in:
Vishnu Kannan
2015-04-09 15:38:36 -07:00
parent 45f85dbf06
commit 2f68cddbd2
5 changed files with 10 additions and 10 deletions

View File

@@ -62,7 +62,7 @@ func (c *Mock) DockerImagesFsInfo() (cadvisorApiV2.FsInfo, error) {
return args.Get(0).(cadvisorApiV2.FsInfo), args.Error(1)
}
func (c *Mock) GetPastEvents(request *events.Request) ([]*cadvisorApi.Event, error) {
func (c *Mock) WatchEvents(request *events.Request) (*events.EventChannel, error) {
args := c.Called()
return args.Get(0).([]*cadvisorApi.Event), args.Error(1)
return args.Get(0).(*events.EventChannel), args.Error(1)
}