containerd/get_containers.go
Michael Crosby 3010f209ff Refactor container info in supervisor
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-11 11:27:33 -08:00

12 lines
229 B
Go

package containerd
type GetContainersEvent struct {
s *Supervisor
}
func (h *GetContainersEvent) Handle(e *Event) error {
for _, i := range h.s.containers {
e.Containers = append(e.Containers, i.container)
}
return nil
}