summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/auto-update.go
blob: aa20664b4c32716171f15b0e8a72ab4f91330586 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package abi

import (
	"context"

	"github.com/containers/libpod/pkg/autoupdate"
	"github.com/containers/libpod/pkg/domain/entities"
)

func (ic *ContainerEngine) AutoUpdate(ctx context.Context) (*entities.AutoUpdateReport, []error) {
	units, failures := autoupdate.AutoUpdate(ic.Libpod)
	return &entities.AutoUpdateReport{Units: units}, failures
}