mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add LogCollector interface, docker, mock log collectors
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user