summaryrefslogtreecommitdiff
path: root/libpod/events/config.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-07-07 08:09:48 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-08-05 14:40:28 -0400
commitc115f4eca0973a42e33dd87a82f5b9166e5b6331 (patch)
tree850e00164f5764f0ea24e172f9a608eddf082a79 /libpod/events/config.go
parent7e0a6a57ef0d35939a41a23f46747291593fa275 (diff)
downloadpodman-c115f4eca0973a42e33dd87a82f5b9166e5b6331.tar.gz
podman-c115f4eca0973a42e33dd87a82f5b9166e5b6331.tar.bz2
podman-c115f4eca0973a42e33dd87a82f5b9166e5b6331.zip
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 <bbaude@redhat.com>
Diffstat (limited to 'libpod/events/config.go')
-rw-r--r--libpod/events/config.go11
1 files changed, 11 insertions, 0 deletions
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")
+)