aboutsummaryrefslogtreecommitdiff
path: root/pkg/varlinkapi
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2019-03-25 09:48:38 -0500
committerbaude <bbaude@redhat.com>2019-03-25 10:28:50 -0500
commite730fc609347ddef217418dd6b0a9da5f671ba89 (patch)
treee3a98f1d979204e12ecdacc794f3129a047f14e1 /pkg/varlinkapi
parentd0c6a35c05a72e4b156819406b83aa9f34f840e0 (diff)
downloadpodman-e730fc609347ddef217418dd6b0a9da5f671ba89.tar.gz
podman-e730fc609347ddef217418dd6b0a9da5f671ba89.tar.bz2
podman-e730fc609347ddef217418dd6b0a9da5f671ba89.zip
Add "died" event
We have a new event for container 'Exited' which has been renamed to 'died'. also removed the stream bool from the varlink endpoint for events because it can be determined by the varlink more value. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/varlinkapi')
-rw-r--r--pkg/varlinkapi/events.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/varlinkapi/events.go b/pkg/varlinkapi/events.go
index d3fe3d65f..47c628ead 100644
--- a/pkg/varlinkapi/events.go
+++ b/pkg/varlinkapi/events.go
@@ -10,13 +10,15 @@ import (
)
// GetEvents is a remote endpoint to get events from the event log
-func (i *LibpodAPI) GetEvents(call iopodman.VarlinkCall, filter []string, since string, stream bool, until string) error {
+func (i *LibpodAPI) GetEvents(call iopodman.VarlinkCall, filter []string, since string, until string) error {
var (
fromStart bool
eventsError error
event *events.Event
+ stream bool
)
if call.WantsMore() {
+ stream = true
call.Continues = true
}
filters, err := shared.GenerateEventOptions(filter, since, until)
@@ -52,5 +54,5 @@ func (i *LibpodAPI) GetEvents(call iopodman.VarlinkCall, filter []string, since
break
}
}
- return call.ReplyGetEvents(iopodman.Event{})
+ return nil
}