Move to a single Event type

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2017-02-06 08:46:37 -08:00
parent 8fbdf1c0d7
commit 31f26fed18
2 changed files with 17 additions and 13 deletions

View file

@ -2,16 +2,20 @@ package execution
import "time"
type ContainerEvent struct {
Timestamp time.Time
ID string
Action string
}
const (
ExitEvent = "exit"
OOMEvent = "oom"
CreateEvent = "create"
StartEvent = "start"
ExecEvent = "exec-added9"
)
type ContainerExitEvent struct {
ContainerEvent
PID uint32
StatusCode uint32
type ContainerEvent struct {
Timestamp time.Time
ID string
Type string
Pid uint32
ExitStatus uint32
}
const (