Use uint32 as Event's Status type everywhere

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-09-19 11:46:33 -07:00
parent 4eb3147efc
commit db9aed5a97
6 changed files with 26 additions and 20 deletions

View file

@ -11,7 +11,7 @@ import (
type DeleteTask struct {
baseTask
ID string
Status int
Status uint32
PID string
NoEvent bool
Process runtime.Process

View file

@ -63,7 +63,7 @@ type ExecExitTask struct {
baseTask
ID string
PID string
Status int
Status uint32
Process runtime.Process
}

View file

@ -46,8 +46,8 @@ func (p *testProcess) ExitFD() int {
return -1
}
func (p *testProcess) ExitStatus() (int, error) {
return -1, nil
func (p *testProcess) ExitStatus() (uint32, error) {
return runtime.UnknownStatus, nil
}
func (p *testProcess) Container() runtime.Container {

View file

@ -186,7 +186,7 @@ type Event struct {
Type string `json:"type"`
Timestamp time.Time `json:"timestamp"`
PID string `json:"pid,omitempty"`
Status int `json:"status,omitempty"`
Status uint32 `json:"status,omitempty"`
}
// Events returns an event channel that external consumers can use to receive updates