add WidgetUpdater interface to container, replace struct fields with metamap

This commit is contained in:
Bradley Cicenas
2017-03-06 08:25:59 +00:00
parent e1dc42db03
commit f102e48cc9
8 changed files with 48 additions and 42 deletions

View File

@@ -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)
}