containerd/get_containers.go
Michael Crosby 779cb69e6d Refactor event loop with types
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-01 10:55:13 -08:00

12 lines
219 B
Go

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