summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/tunnel
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-03-31 21:12:49 +0200
committerGitHub <noreply@github.com>2020-03-31 21:12:49 +0200
commit6e8f6cab602b43d05c97c167faa56b3f46f1f73a (patch)
treec4b4f2ab7e91e4f49d2fe5a9b9d89be455bdd219 /pkg/domain/infra/tunnel
parent56ab9e4cc8a33bb8a791a799753a11c33809dedf (diff)
parent3bdad6fa2af41be7e783256f3c8a213dc42ca8f6 (diff)
downloadpodman-6e8f6cab602b43d05c97c167faa56b3f46f1f73a.tar.gz
podman-6e8f6cab602b43d05c97c167faa56b3f46f1f73a.tar.bz2
podman-6e8f6cab602b43d05c97c167faa56b3f46f1f73a.zip
Merge pull request #5675 from vrothberg/v2-pull
podmanV2: implement pull
Diffstat (limited to 'pkg/domain/infra/tunnel')
-rw-r--r--pkg/domain/infra/tunnel/images.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/domain/infra/tunnel/images.go b/pkg/domain/infra/tunnel/images.go
index 6a3adc9ee..7638d908a 100644
--- a/pkg/domain/infra/tunnel/images.go
+++ b/pkg/domain/infra/tunnel/images.go
@@ -85,3 +85,11 @@ func (ir *ImageEngine) Prune(ctx context.Context, opts entities.ImagePruneOption
}
return &report, nil
}
+
+func (ir *ImageEngine) Pull(ctx context.Context, rawImage string, options entities.ImagePullOptions) (*entities.ImagePullReport, error) {
+ pulledImages, err := images.Pull(ir.ClientCxt, rawImage, options)
+ if err != nil {
+ return nil, err
+ }
+ return &entities.ImagePullReport{Images: pulledImages}, nil
+}