mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 15:16:41 +08:00
add WidgetUpdater interface to container, replace struct fields with metamap
This commit is contained in:
@@ -31,7 +31,7 @@ func (cs *MockContainerSource) Init() {
|
||||
time.Sleep(1 * time.Second)
|
||||
collector := metrics.NewMock()
|
||||
c := NewContainer(makeID(), collector)
|
||||
c.SetName(makeName())
|
||||
c.SetMeta("name", makeName())
|
||||
c.SetState(makeState())
|
||||
cs.containers = append(cs.containers, c)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user