summaryrefslogtreecommitdiff
path: root/libpod/events/config.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-23 16:21:53 -0400
committerGitHub <noreply@github.com>2020-10-23 16:21:53 -0400
commit050dcadf69dfe34986015ef14a99002617acd71a (patch)
treef69648182082c37d4416efdb5405a9431984463c /libpod/events/config.go
parent51fa8ded9ffb7924288a2728ce92af7f6cc66d34 (diff)
parentc593e49701b3a4bb48050f3d8829f2fe6ac457ef (diff)
downloadpodman-050dcadf69dfe34986015ef14a99002617acd71a.tar.gz
podman-050dcadf69dfe34986015ef14a99002617acd71a.tar.bz2
podman-050dcadf69dfe34986015ef14a99002617acd71a.zip
Merge pull request #8103 from baude/eventlabels
filter events by labels
Diffstat (limited to 'libpod/events/config.go')
-rw-r--r--libpod/events/config.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpod/events/config.go b/libpod/events/config.go
index bb35c03c0..2ec3111fe 100644
--- a/libpod/events/config.go
+++ b/libpod/events/config.go
@@ -36,6 +36,18 @@ type Event struct {
Time time.Time
// Type of event that occurred
Type Type
+
+ Details
+}
+
+// Details describes specifics about certain events, specifically around
+// container events
+type Details struct {
+ // ID is the event ID
+ ID string
+ // Attributes can be used to describe specifics about the event
+ // in the case of a container event, labels for example
+ Attributes map[string]string
}
// EventerOptions describe options that need to be passed to create