diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-06-13 04:15:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 04:15:20 -0400 |
commit | 1c46b31a6806d2aae54238b233ebfd8c126061b8 (patch) | |
tree | aff135c1c44b2a7505914864be8ab2da541bf22b /pkg/bindings/images | |
parent | c044d455a1f42447fa800f0a5b4e83a7e271dbeb (diff) | |
parent | 48cf1d258326b25308225cb4a22703d6e3416b18 (diff) | |
download | podman-1c46b31a6806d2aae54238b233ebfd8c126061b8.tar.gz podman-1c46b31a6806d2aae54238b233ebfd8c126061b8.tar.bz2 podman-1c46b31a6806d2aae54238b233ebfd8c126061b8.zip |
Merge pull request #14560 from rhatdan/remote
podman-remote push --remove-signatures support
Diffstat (limited to 'pkg/bindings/images')
-rw-r--r-- | pkg/bindings/images/types.go | 2 | ||||
-rw-r--r-- | pkg/bindings/images/types_push_options.go | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/pkg/bindings/images/types.go b/pkg/bindings/images/types.go index 8e5e7ee92..16dbad380 100644 --- a/pkg/bindings/images/types.go +++ b/pkg/bindings/images/types.go @@ -127,6 +127,8 @@ type PushOptions struct { Password *string // SkipTLSVerify to skip HTTPS and certificate verification. SkipTLSVerify *bool + // RemoveSignatures Discard any pre-existing signatures in the image. + RemoveSignatures *bool // Username for authenticating against the registry. Username *string } diff --git a/pkg/bindings/images/types_push_options.go b/pkg/bindings/images/types_push_options.go index 4985c9451..25f6c5546 100644 --- a/pkg/bindings/images/types_push_options.go +++ b/pkg/bindings/images/types_push_options.go @@ -107,6 +107,21 @@ func (o *PushOptions) GetSkipTLSVerify() bool { return *o.SkipTLSVerify } +// WithRemoveSignatures set field RemoveSignatures to given value +func (o *PushOptions) WithRemoveSignatures(value bool) *PushOptions { + o.RemoveSignatures = &value + return o +} + +// GetRemoveSignatures returns value of field RemoveSignatures +func (o *PushOptions) GetRemoveSignatures() bool { + if o.RemoveSignatures == nil { + var z bool + return z + } + return *o.RemoveSignatures +} + // WithUsername set field Username to given value func (o *PushOptions) WithUsername(value string) *PushOptions { o.Username = &value |