containerd/get_containers.go

13 lines
219 B
Go
Raw Normal View History

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
}