summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi/auto-update.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/domain/infra/abi/auto-update.go')
-rw-r--r--pkg/domain/infra/abi/auto-update.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/auto-update.go b/pkg/domain/infra/abi/auto-update.go
new file mode 100644
index 000000000..aa20664b4
--- /dev/null
+++ b/pkg/domain/infra/abi/auto-update.go
@@ -0,0 +1,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
+}