From aa6e9a3d5b8ddd6b37309a89d0f292d435989b3e Mon Sep 17 00:00:00 2001 From: Victor Marmol Date: Mon, 20 Apr 2015 09:16:00 -0700 Subject: [PATCH] Use strings for EventType enum --- info/v1/container.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/info/v1/container.go b/info/v1/container.go index a3740748..b8591815 100644 --- a/info/v1/container.go +++ b/info/v1/container.go @@ -494,13 +494,13 @@ type Event struct { // EventType is an enumerated type which lists the categories under which // events may fall. The Event field EventType is populated by this enum. -type EventType int +type EventType string const ( - EventOom EventType = 0 - EventOomKill = 1 - EventContainerCreation = 2 - EventContainerDeletion = 3 + EventOom EventType = "oom" + EventOomKill = "oomKill" + EventContainerCreation = "containerCreation" + EventContainerDeletion = "containerDeletion" ) // Extra information about an event. Only one type will be set.