Use uint32 as Event's Status type everywhere
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
4eb3147efc
commit
db9aed5a97
6 changed files with 26 additions and 20 deletions
|
@ -11,7 +11,7 @@ import (
|
|||
type DeleteTask struct {
|
||||
baseTask
|
||||
ID string
|
||||
Status int
|
||||
Status uint32
|
||||
PID string
|
||||
NoEvent bool
|
||||
Process runtime.Process
|
||||
|
|
|
@ -63,7 +63,7 @@ type ExecExitTask struct {
|
|||
baseTask
|
||||
ID string
|
||||
PID string
|
||||
Status int
|
||||
Status uint32
|
||||
Process runtime.Process
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue