summaryrefslogtreecommitdiff
path: root/pkg/domain
diff options
context:
space:
mode:
authorMilivoje Legenovic <m.legenovic@gmail.com>2021-03-07 02:38:01 +0100
committerMilivoje Legenovic <m.legenovic@gmail.com>2021-03-07 02:38:01 +0100
commit9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9 (patch)
tree584a48f0a394ca27890c5bb912de06820456cd70 /pkg/domain
parent4e5cc6a3a61d9d2f1d3b97fc10684ec5617816ab (diff)
downloadpodman-9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9.tar.gz
podman-9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9.tar.bz2
podman-9fc29f63e0dedea0dbe03e5baf012b6bf5ab51b9.zip
Correct compat images/{name}/push response
Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
Diffstat (limited to 'pkg/domain')
-rw-r--r--pkg/domain/entities/images.go2
-rw-r--r--pkg/domain/infra/abi/images.go3
2 files changed, 4 insertions, 1 deletions
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go
index 19109f873..7999d8209 100644
--- a/pkg/domain/entities/images.go
+++ b/pkg/domain/entities/images.go
@@ -203,6 +203,8 @@ type ImagePushOptions struct {
SignBy string
// SkipTLSVerify to skip HTTPS and certificate verification.
SkipTLSVerify types.OptionalBool
+ // Progress to get progress notifications
+ Progress chan types.ProgressProperties
}
// ImageSearchOptions are the arguments for searching images.
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index ffd4856fe..b1751b8b6 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -376,7 +376,8 @@ func (ir *ImageEngine) Push(ctx context.Context, source string, destination stri
options.Compress,
signOptions,
&dockerRegistryOptions,
- nil)
+ nil,
+ options.Progress)
if err != nil && errors.Cause(err) != storage.ErrImageUnknown {
// Image might be a manifest list so attempt a manifest push
if _, manifestErr := ir.ManifestPush(ctx, source, destination, options); manifestErr == nil {