summaryrefslogtreecommitdiff
path: root/libpod/events/config.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-07-17 15:17:26 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-07-31 17:28:42 -0400
commitcdd5639d564624a6fbca426421d47c840dac8556 (patch)
treef3d803155a430f22150d5cf04ebfe3683cfe846a /libpod/events/config.go
parentfd73075cbe91a4b38fe835b1f17bbabe0971bad9 (diff)
downloadpodman-cdd5639d564624a6fbca426421d47c840dac8556.tar.gz
podman-cdd5639d564624a6fbca426421d47c840dac8556.tar.bz2
podman-cdd5639d564624a6fbca426421d47c840dac8556.zip
Expose Null eventer and allow its use in the Podman CLI
We need this specifically for tests, but others may find it useful if they don't explicitly need events and don't want the performance implications of using them. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/events/config.go')
-rw-r--r--libpod/events/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/events/config.go b/libpod/events/config.go
index b9f01f3a5..96172d47b 100644
--- a/libpod/events/config.go
+++ b/libpod/events/config.go
@@ -14,6 +14,8 @@ const (
LogFile EventerType = iota
// Journald indicates journald should be used to log events
Journald EventerType = iota
+ // Null is a no-op events logger. It does not read or write events.
+ Null EventerType = iota
)
// Event describes the attributes of a libpod event