From 04d6ff058270006b98961e0f973ff6ee4c3ba8e8 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 25 Apr 2019 16:23:09 -0400 Subject: Add System event type and renumber, refresh events Also, re-add locking to file eventer Write() to protect against concurrent events. Signed-off-by: Matthew Heon --- libpod/events/config.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libpod/events/config.go') diff --git a/libpod/events/config.go b/libpod/events/config.go index d3b6d8c50..36387e835 100644 --- a/libpod/events/config.go +++ b/libpod/events/config.go @@ -84,6 +84,9 @@ const ( Image Type = "image" // Pod - event is related to pods Pod Type = "pod" + // System - event is related to Podman whole and not to any specific + // container/pod/image/volume + System Type = "system" // Volume - event is related to volumes Volume Type = "volume" @@ -123,8 +126,14 @@ const ( Pull Status = "pull" // Push ... Push Status = "push" + // Refresh indicates that the system refreshed the state after a + // reboot. + Refresh Status = "refresh" // Remove ... Remove Status = "remove" + // Renumber indicates that lock numbers were reallocated at user + // request. + Renumber Status = "renumber" // Restore ... Restore Status = "restore" // Save ... -- cgit v1.2.3-54-g00ecf