add LogCollector interface, docker, mock log collectors

This commit is contained in:
Bradley Cicenas
2017-06-27 17:18:17 +00:00
parent 240345d527
commit 17e2c2df8e
7 changed files with 106 additions and 48 deletions

View File

@@ -67,6 +67,11 @@ func (c *Container) SetState(s string) {
}
}
// Return container log collector
func (c *Container) Logs() collector.LogCollector {
return c.collector.Logs()
}
// Read metric stream, updating widgets
func (c *Container) Read(stream chan models.Metrics) {
go func() {