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:
@@ -3,7 +3,6 @@
|
||||
package collector
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/bcicen/ctop/models"
|
||||
@@ -52,8 +51,8 @@ func (c *Runc) Stream() chan models.Metrics {
|
||||
return c.stream
|
||||
}
|
||||
|
||||
func (c *Runc) StreamLogs() (chan string, error) {
|
||||
return nil, fmt.Errorf("log streaming unavailable for runc collector")
|
||||
func (c *Runc) Logs() LogCollector {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Runc) run() {
|
||||
|
||||
Reference in New Issue
Block a user