Return container on start
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -37,6 +37,7 @@ func NewEvent(t EventType) *Event {
|
||||
}
|
||||
|
||||
type StartResponse struct {
|
||||
Container runtime.Container
|
||||
}
|
||||
|
||||
type Event struct {
|
||||
|
||||
@@ -65,6 +65,8 @@ func (w *worker) Start() {
|
||||
}
|
||||
ContainerStartTimer.UpdateSince(started)
|
||||
t.Err <- nil
|
||||
t.StartResponse <- StartResponse{}
|
||||
t.StartResponse <- StartResponse{
|
||||
Container: t.Container,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user