grid updates, fix menu alignment

This commit is contained in:
Bradley Cicenas
2017-03-06 13:00:30 +11:00
parent 4b035ad52a
commit 38a1b305a7
5 changed files with 37 additions and 29 deletions
+2 -3
View File
@@ -10,7 +10,7 @@ import (
)
type ContainerSource interface {
All() []*Container
All() Containers
Get(string) (*Container, bool)
}
@@ -129,8 +129,7 @@ func (cm *DockerContainerSource) delByID(id string) {
}
// Return array of all containers, sorted by field
func (cm *DockerContainerSource) All() []*Container {
var containers Containers
func (cm *DockerContainerSource) All() (containers Containers) {
for _, c := range cm.containers {
containers = append(containers, c)
}