diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-01-29 12:05:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 12:05:20 -0500 |
commit | 4ee66c2c2ecc747ec3d567c0cff6fb89b2f8f112 (patch) | |
tree | b8d8227eea8be154ac72bb7bb655efc07a742278 /pkg/bindings | |
parent | b59848a2b92b1554c55f6bd33a105c0fef158b8a (diff) | |
parent | d7c356552e3c3d1710f22da2f710f9ad529c2ad9 (diff) | |
download | podman-4ee66c2c2ecc747ec3d567c0cff6fb89b2f8f112.tar.gz podman-4ee66c2c2ecc747ec3d567c0cff6fb89b2f8f112.tar.bz2 podman-4ee66c2c2ecc747ec3d567c0cff6fb89b2f8f112.zip |
Merge pull request #9149 from rhatdan/docs
Podman-remote push can support --format
Diffstat (limited to 'pkg/bindings')
-rw-r--r-- | pkg/bindings/images/types.go | 2 | ||||
-rw-r--r-- | pkg/bindings/images/types_push_options.go | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/pkg/bindings/images/types.go b/pkg/bindings/images/types.go index f9d6f8dbb..7bf70c82b 100644 --- a/pkg/bindings/images/types.go +++ b/pkg/bindings/images/types.go @@ -105,6 +105,8 @@ type PushOptions struct { Authfile *string // Compress tarball image layers when pushing to a directory using the 'dir' transport. Compress *bool + // Manifest type of the pushed image + Format *string // Password for authenticating against the registry. Password *string // SkipTLSVerify to skip HTTPS and certificate verification. diff --git a/pkg/bindings/images/types_push_options.go b/pkg/bindings/images/types_push_options.go index 7f9bb1064..b7d8a6f2d 100644 --- a/pkg/bindings/images/types_push_options.go +++ b/pkg/bindings/images/types_push_options.go @@ -135,6 +135,22 @@ func (o *PushOptions) GetCompress() bool { return *o.Compress } +// WithFormat +func (o *PushOptions) WithFormat(value string) *PushOptions { + v := &value + o.Format = v + return o +} + +// GetFormat +func (o *PushOptions) GetFormat() string { + var format string + if o.Format == nil { + return format + } + return *o.Format +} + // WithPassword func (o *PushOptions) WithPassword(value string) *PushOptions { v := &value |