aboutsummaryrefslogtreecommitdiff
path: root/libpod/events/config.go
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2019-05-20 17:23:03 -0400
committerQi Wang <qiwan@redhat.com>2019-08-02 11:47:43 -0400
commit0ad374af6a7552a68736e68fd4093809844a171f (patch)
treee6c6e68a399b510c2718f76acf813f763967a7f3 /libpod/events/config.go
parent3cc9ab8992833ddf952df479ffb239c61845fa2e (diff)
downloadpodman-0ad374af6a7552a68736e68fd4093809844a171f.tar.gz
podman-0ad374af6a7552a68736e68fd4093809844a171f.tar.bz2
podman-0ad374af6a7552a68736e68fd4093809844a171f.zip
podman events format json
Enable podman events to format the output as jsonline Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'libpod/events/config.go')
-rw-r--r--libpod/events/config.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpod/events/config.go b/libpod/events/config.go
index 96172d47b..36080c448 100644
--- a/libpod/events/config.go
+++ b/libpod/events/config.go
@@ -22,13 +22,13 @@ const (
type Event struct {
// ContainerExitCode is for storing the exit code of a container which can
// be used for "internal" event notification
- ContainerExitCode int
+ ContainerExitCode int `json:",omitempty"`
// ID can be for the container, image, volume, etc
- ID string
+ ID string `json:",omitempty"`
// Image used where applicable
- Image string
+ Image string `json:",omitempty"`
// Name where applicable
- Name string
+ Name string `json:",omitempty"`
// Status describes the event that occurred
Status Status
// Time the event occurred