From d252100c946ff7fd581197d636ed7966b11e9a83 Mon Sep 17 00:00:00 2001 From: baude Date: Sun, 7 Jul 2019 08:09:48 -0500 Subject: get last container event an internal change in libpod will soon required the ability to lookup the last container event using the continer name or id and the type of event. this pr is in preperation for that need. Signed-off-by: baude --- libpod/events/config.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libpod/events/config.go') diff --git a/libpod/events/config.go b/libpod/events/config.go index 810988205..b9f01f3a5 100644 --- a/libpod/events/config.go +++ b/libpod/events/config.go @@ -2,6 +2,8 @@ package events import ( "time" + + "github.com/pkg/errors" ) // EventerType ... @@ -158,3 +160,12 @@ const ( // EventFilter for filtering events type EventFilter func(*Event) bool + +var ( + // ErrEventTypeBlank indicates the event log found something done by podman + // but it isnt likely an event + ErrEventTypeBlank = errors.New("event type blank") + + // ErrEventNotFound indicates that the event was not found in the event log + ErrEventNotFound = errors.New("unable to find event") +) -- cgit v1.2.3-54-g00ecf