mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-26 18:27:53 +00:00
13 lines
445 B
Go
13 lines
445 B
Go
package abi
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/containers/podman/v2/libpod/events"
|
|
"github.com/containers/podman/v2/pkg/domain/entities"
|
|
)
|
|
|
|
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}
|
|
return ic.Libpod.Events(ctx, readOpts)
|
|
}
|