Add exited at to events and delete requests

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-04-13 13:55:58 -07:00
parent d41f146eed
commit efe177ed77
14 changed files with 351 additions and 189 deletions

View File

@@ -5,6 +5,7 @@ package shim
import (
"context"
"io"
"time"
"github.com/crosbymichael/console"
)
@@ -18,6 +19,8 @@ type process interface {
Exited(status int)
// Status returns the exit status
Status() int
// ExitedAt is the time the process exited
ExitedAt() time.Time
// Delete deletes the process and its resourcess
Delete(context.Context) error
// Signal directly signals the process