aboutsummaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/events.go
blob: dffe1ac1a2a912c9c94f4c0e0132e24e5df89dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package abi

import (
	"context"

	"github.com/containers/podman/v4/libpod/events"
	"github.com/containers/podman/v4/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)
}