Use strings for EventType enum
This commit is contained in:
parent
259f7465df
commit
aa6e9a3d5b
@ -494,13 +494,13 @@ type Event struct {
|
|||||||
|
|
||||||
// EventType is an enumerated type which lists the categories under which
|
// EventType is an enumerated type which lists the categories under which
|
||||||
// events may fall. The Event field EventType is populated by this enum.
|
// events may fall. The Event field EventType is populated by this enum.
|
||||||
type EventType int
|
type EventType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
EventOom EventType = 0
|
EventOom EventType = "oom"
|
||||||
EventOomKill = 1
|
EventOomKill = "oomKill"
|
||||||
EventContainerCreation = 2
|
EventContainerCreation = "containerCreation"
|
||||||
EventContainerDeletion = 3
|
EventContainerDeletion = "containerDeletion"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Extra information about an event. Only one type will be set.
|
// Extra information about an event. Only one type will be set.
|
||||||
|
Loading…
Reference in New Issue
Block a user