summaryrefslogtreecommitdiff
path: root/libpod/events/config.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-04 11:28:11 -0400
committerGitHub <noreply@github.com>2022-05-04 11:28:11 -0400
commit02eef6c4bf5b423c5f97a9883d21f2b4152a45ce (patch)
treef270d90ebba169bb883398a8a42c10f1df8ea305 /libpod/events/config.go
parent89e60648404bfbcf9ea8d5cb84c01c1f5e72a890 (diff)
parenta21e112364f93a1a7d342584a239b289a8ee9f0a (diff)
downloadpodman-02eef6c4bf5b423c5f97a9883d21f2b4152a45ce.tar.gz
podman-02eef6c4bf5b423c5f97a9883d21f2b4152a45ce.tar.bz2
podman-02eef6c4bf5b423c5f97a9883d21f2b4152a45ce.zip
Merge pull request #14112 from openshift-cherrypick-robot/cherry-pick-14085-to-v4.1
[v4.1] Add podman machine events
Diffstat (limited to 'libpod/events/config.go')
-rw-r--r--libpod/events/config.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpod/events/config.go b/libpod/events/config.go
index 35680a275..00cdca007 100644
--- a/libpod/events/config.go
+++ b/libpod/events/config.go
@@ -17,6 +17,8 @@ const (
Journald EventerType = iota
// Null is a no-op events logger. It does not read or write events.
Null EventerType = iota
+ // Memory indicates the event logger will hold events in memory
+ Memory EventerType = iota
)
// Event describes the attributes of a libpod event
@@ -55,7 +57,7 @@ type Details struct {
// EventerOptions describe options that need to be passed to create
// an eventer
type EventerOptions struct {
- // EventerType describes whether to use journald or a file
+ // EventerType describes whether to use journald, file or memory
EventerType string
// LogFilePath is the path to where the log file should reside if using
// the file logger
@@ -110,6 +112,8 @@ const (
System Type = "system"
// Volume - event is related to volumes
Volume Type = "volume"
+ // Machine - event is related to machine VM's
+ Machine Type = "machine"
// Attach ...
Attach Status = "attach"