summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/events.go
blob: 9540a5b969ef00b5cc5f2cd4c5b18277f30609d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}