containerd/supervisor/get_containers.go
Alexander Morozov 69f8f566a2 Move supervisor to it's own package
It allows to keep main namespace cleaner

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-12-17 16:18:48 -08:00

12 lines
229 B
Go

package supervisor
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
}