aboutsummaryrefslogtreecommitdiff
path: root/pkg/bindings
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-08-05 14:48:18 +0000
committerGitHub <noreply@github.com>2022-08-05 14:48:18 +0000
commit66c246d2c13edb893368fef4ba3a9770c00f8f3b (patch)
treef879331b8c4e8312e9a422b9a111aaa240b5db9a /pkg/bindings
parentff144e085e0e0b90b9bed4ce78cce014bcc672c2 (diff)
parentcc8e4d5fec571d6bd69d3d2f8189e945b621ba7b (diff)
downloadpodman-66c246d2c13edb893368fef4ba3a9770c00f8f3b.tar.gz
podman-66c246d2c13edb893368fef4ba3a9770c00f8f3b.tar.bz2
podman-66c246d2c13edb893368fef4ba3a9770c00f8f3b.zip
Merge pull request #15093 from karthikelango137/rmiNoPrune1
remove image podman no prune
Diffstat (limited to 'pkg/bindings')
-rw-r--r--pkg/bindings/images/types.go2
-rw-r--r--pkg/bindings/images/types_remove_options.go15
2 files changed, 17 insertions, 0 deletions
diff --git a/pkg/bindings/images/types.go b/pkg/bindings/images/types.go
index 0664afc1b..9783a8e18 100644
--- a/pkg/bindings/images/types.go
+++ b/pkg/bindings/images/types.go
@@ -15,6 +15,8 @@ type RemoveOptions struct {
Ignore *bool
// Confirms if given name is a manifest list and removes it, otherwise returns error.
LookupManifest *bool
+ // Does not remove dangling parent images
+ NoPrune *bool
}
//go:generate go run ../generator/generator.go DiffOptions
diff --git a/pkg/bindings/images/types_remove_options.go b/pkg/bindings/images/types_remove_options.go
index 559ebcfd5..8972ac93c 100644
--- a/pkg/bindings/images/types_remove_options.go
+++ b/pkg/bindings/images/types_remove_options.go
@@ -76,3 +76,18 @@ func (o *RemoveOptions) GetLookupManifest() bool {
}
return *o.LookupManifest
}
+
+// WithNoPrune set field NoPrune to given value
+func (o *RemoveOptions) WithNoPrune(value bool) *RemoveOptions {
+ o.NoPrune = &value
+ return o
+}
+
+// GetNoPrune returns value of field NoPrune
+func (o *RemoveOptions) GetNoPrune() bool {
+ if o.NoPrune == nil {
+ var z bool
+ return z
+ }
+ return *o.NoPrune
+}