mirror of
https://github.com/bcicen/ctop.git
synced 2025-11-10 05:05:40 +01:00
move containermap to own file
This commit is contained in:
10
container.go
10
container.go
@@ -14,16 +14,6 @@ type Container struct {
|
||||
reader *StatReader
|
||||
}
|
||||
|
||||
func NewContainer(cid, names string) *Container {
|
||||
return &Container{
|
||||
id: cid,
|
||||
done: make(chan bool),
|
||||
stats: make(chan *docker.Stats),
|
||||
widgets: NewWidgets(cid, names),
|
||||
reader: &StatReader{},
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Container) Collect(client *docker.Client) {
|
||||
|
||||
go func() {
|
||||
|
||||
Reference in New Issue
Block a user