Return container on start

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2016-02-11 11:56:11 -08:00
parent d317f71ac2
commit 58c5eb5ecb
5 changed files with 155 additions and 128 deletions

View file

@ -37,6 +37,7 @@ func NewEvent(t EventType) *Event {
}
type StartResponse struct {
Container runtime.Container
}
type Event struct {

View file

@ -65,6 +65,8 @@ func (w *worker) Start() {
}
ContainerStartTimer.UpdateSince(started)
t.Err <- nil
t.StartResponse <- StartResponse{}
t.StartResponse <- StartResponse{
Container: t.Container,
}
}
}