diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-07-22 11:31:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 11:31:50 +0200 |
commit | 1f357892521e6b5f8b9dd877b54b2cf9be96b826 (patch) | |
tree | 78e9f2194bf31776b08a28828e341227bd56e361 /pkg/domain/entities | |
parent | ee937c518e7efb9c47d21a4e1050b966ca02d005 (diff) | |
parent | b79ac0aca2ba7f8a5176197da9fa5992d0b6d497 (diff) | |
download | podman-1f357892521e6b5f8b9dd877b54b2cf9be96b826.tar.gz podman-1f357892521e6b5f8b9dd877b54b2cf9be96b826.tar.bz2 podman-1f357892521e6b5f8b9dd877b54b2cf9be96b826.zip |
Merge pull request #15022 from vrothberg/fix-14971
remote push: show copy progress
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r-- | pkg/domain/entities/images.go | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkg/domain/entities/images.go b/pkg/domain/entities/images.go index da317cfad..b8b346005 100644 --- a/pkg/domain/entities/images.go +++ b/pkg/domain/entities/images.go @@ -1,6 +1,7 @@ package entities import ( + "io" "net/url" "time" @@ -192,8 +193,7 @@ type ImagePushOptions struct { // image. Default is manifest type of source, with fallbacks. // Ignored for remote calls. Format string - // Quiet can be specified to suppress pull progress when pulling. Ignored - // for remote calls. + // Quiet can be specified to suppress push progress when pushing. Quiet bool // Rm indicates whether to remove the manifest list if push succeeds Rm bool @@ -211,6 +211,17 @@ type ImagePushOptions struct { Progress chan types.ProgressProperties // CompressionFormat is the format to use for the compression of the blobs CompressionFormat string + // Writer is used to display copy information including progress bars. + Writer io.Writer +} + +// ImagePushReport is the response from pushing an image. +// Currently only used in the remote API. +type ImagePushReport struct { + // Stream used to provide push progress + Stream string `json:"stream,omitempty"` + // Error contains text of errors from pushing + Error string `json:"error,omitempty"` } // ImageSearchOptions are the arguments for searching images. |