diff options
author | Brent Baude <bbaude@redhat.com> | 2020-03-27 13:21:51 -0500 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2020-04-15 09:38:04 -0500 |
commit | 165aef7766953cd0c0589ffa1abc25022a905adb (patch) | |
tree | 4ac195c5290dbd6ea9fbfb5b1aaa53d169a00899 /pkg/domain/entities | |
parent | a756161e80cd32b705bb0dfe3ec4753f883ec929 (diff) | |
download | podman-165aef7766953cd0c0589ffa1abc25022a905adb.tar.gz podman-165aef7766953cd0c0589ffa1abc25022a905adb.tar.bz2 podman-165aef7766953cd0c0589ffa1abc25022a905adb.zip |
podmanv2 events
add the ability to monitor events
Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/engine_container.go | 1 | ||||
-rw-r--r-- | pkg/domain/entities/types.go | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/pkg/domain/entities/engine_container.go b/pkg/domain/entities/engine_container.go index 2001ab49c..5fdb9a8a6 100644 --- a/pkg/domain/entities/engine_container.go +++ b/pkg/domain/entities/engine_container.go @@ -36,6 +36,7 @@ type ContainerEngine interface { ContainerUnmount(ctx context.Context, nameOrIds []string, options ContainerUnmountOptions) ([]*ContainerUnmountReport, error) ContainerUnpause(ctx context.Context, namesOrIds []string, options PauseUnPauseOptions) ([]*PauseUnpauseReport, error) ContainerWait(ctx context.Context, namesOrIds []string, options WaitOptions) ([]WaitReport, error) + Events(ctx context.Context, opts EventsOptions) error HealthCheckRun(ctx context.Context, nameOrId string, options HealthCheckOptions) (*define.HealthCheckResults, error) Info(ctx context.Context) (*define.Info, error) PodCreate(ctx context.Context, opts PodCreateOptions) (*PodCreateReport, error) diff --git a/pkg/domain/entities/types.go b/pkg/domain/entities/types.go index 7e35957f4..91ae00764 100644 --- a/pkg/domain/entities/types.go +++ b/pkg/domain/entities/types.go @@ -3,6 +3,7 @@ package entities import ( "net" + "github.com/containers/libpod/libpod/events" "github.com/containers/libpod/pkg/specgen" "github.com/containers/storage/pkg/archive" "github.com/cri-o/ocicni/pkg/ocicni" @@ -62,3 +63,12 @@ type DiffOptions struct { type DiffReport struct { Changes []archive.Change } + +type EventsOptions struct { + FromStart bool + EventChan chan *events.Event + Filter []string + Stream bool + Since string + Until string +} |