Move to a single Event type
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
8fbdf1c0d7
commit
31f26fed18
2 changed files with 17 additions and 13 deletions
|
@ -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 (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue