2015-12-18 00:07:04 +00:00
|
|
|
package supervisor
|
2015-12-01 18:55:13 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|