Add ExitedAt to process proto definition

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2017-08-21 08:18:02 -07:00
parent 8095244c26
commit 8a1b03e525
12 changed files with 312 additions and 125 deletions

View File

@@ -2,6 +2,7 @@ package runtime
import (
"context"
"time"
"github.com/gogo/protobuf/types"
)
@@ -77,10 +78,13 @@ type State struct {
// Pid is the main process id for the container
Pid uint32
// ExitStatus of the process
// Only vaid if the Status is Stopped
// Only valid if the Status is Stopped
ExitStatus uint32
Stdin string
Stdout string
Stderr string
Terminal bool
// ExitedAt is the time at which the process exited
// Only valid if the Status is Stopped
ExitedAt time.Time
Stdin string
Stdout string
Stderr string
Terminal bool
}