diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-15 18:37:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-15 18:37:18 +0200 |
commit | 9b78bf9293bd7920b60aa0bf41fa40f9200f54ff (patch) | |
tree | 10fc513e65d5aa0fb6818674478549c121330e8b /pkg/domain/infra/abi | |
parent | cc9b78f07ca9941260b74ad07f3b94357e138286 (diff) | |
parent | 165aef7766953cd0c0589ffa1abc25022a905adb (diff) | |
download | podman-9b78bf9293bd7920b60aa0bf41fa40f9200f54ff.tar.gz podman-9b78bf9293bd7920b60aa0bf41fa40f9200f54ff.tar.bz2 podman-9b78bf9293bd7920b60aa0bf41fa40f9200f54ff.zip |
Merge pull request #5770 from baude/v2events
podmanv2 events
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r-- | pkg/domain/infra/abi/events.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/events.go b/pkg/domain/infra/abi/events.go new file mode 100644 index 000000000..9540a5b96 --- /dev/null +++ b/pkg/domain/infra/abi/events.go @@ -0,0 +1,18 @@ +//+build ABISupport + +package abi + +import ( + "context" + + "github.com/containers/libpod/libpod/events" + "github.com/containers/libpod/pkg/domain/entities" + "github.com/sirupsen/logrus" +) + +func (ic *ContainerEngine) Events(ctx context.Context, opts entities.EventsOptions) error { + readOpts := events.ReadOptions{FromStart: opts.FromStart, Stream: opts.Stream, Filters: opts.Filter, EventChannel: opts.EventChan, Since: opts.Since, Until: opts.Until} + err := ic.Libpod.Events(readOpts) + logrus.Error(err) + return err +} |