summaryrefslogtreecommitdiff
path: root/libpod/events/config.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-07-08 16:23:22 +0200
committerGitHub <noreply@github.com>2019-07-08 16:23:22 +0200
commit61c000a1d3bc58bbd669626ab67a9552088f3242 (patch)
tree50fc6db382a33dcdf83b3798845980b636951bd7 /libpod/events/config.go
parentf7407f2eb512e1407f8281009eb829f37405119b (diff)
parentd252100c946ff7fd581197d636ed7966b11e9a83 (diff)
downloadpodman-61c000a1d3bc58bbd669626ab67a9552088f3242.tar.gz
podman-61c000a1d3bc58bbd669626ab67a9552088f3242.tar.bz2
podman-61c000a1d3bc58bbd669626ab67a9552088f3242.zip
Merge pull request #3505 from baude/getlastevent
get last container event
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")
+)