summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/types_prune_options.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-28 07:34:12 -0400
committerGitHub <noreply@github.com>2021-09-28 07:34:12 -0400
commitf2ffb96eb317012e94258a242f6dc907acd22c40 (patch)
treede48efeabf92b80e8cc69c456f33908124630769 /pkg/bindings/images/types_prune_options.go
parent340166876eab09d3e363647213f162864a95d270 (diff)
parenta9a54eefab34b25628906a786d6c4ca302f743b1 (diff)
downloadpodman-f2ffb96eb317012e94258a242f6dc907acd22c40.tar.gz
podman-f2ffb96eb317012e94258a242f6dc907acd22c40.tar.bz2
podman-f2ffb96eb317012e94258a242f6dc907acd22c40.zip
Merge pull request #11737 from vrothberg/fix-11472
image prune: support removing external containers
Diffstat (limited to 'pkg/bindings/images/types_prune_options.go')
-rw-r--r--pkg/bindings/images/types_prune_options.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/bindings/images/types_prune_options.go b/pkg/bindings/images/types_prune_options.go
index 77bef32e3..c9772045e 100644
--- a/pkg/bindings/images/types_prune_options.go
+++ b/pkg/bindings/images/types_prune_options.go
@@ -32,6 +32,21 @@ func (o *PruneOptions) GetAll() bool {
return *o.All
}
+// WithExternal set field External to given value
+func (o *PruneOptions) WithExternal(value bool) *PruneOptions {
+ o.External = &value
+ return o
+}
+
+// GetExternal returns value of field External
+func (o *PruneOptions) GetExternal() bool {
+ if o.External == nil {
+ var z bool
+ return z
+ }
+ return *o.External
+}
+
// WithFilters set field Filters to given value
func (o *PruneOptions) WithFilters(value map[string][]string) *PruneOptions {
o.Filters = value