2015-12-01 18:55:13 +00:00
|
|
|
package containerd
|
|
|
|
|
|
|
|
type GetContainersEvent struct {
|
|
|
|
s *Supervisor
|
|
|
|
}
|
|
|
|
|
|
|
|
func (h *GetContainersEvent) Handle(e *Event) error {
|
2015-12-11 19:27:33 +00:00
|
|
|
for _, i := range h.s.containers {
|
|
|
|
e.Containers = append(e.Containers, i.container)
|
2015-12-01 18:55:13 +00:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|