summaryrefslogtreecommitdiff
path: root/pkg/bindings/system/types_prune_options.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2021-09-13 14:29:22 -0700
committerMatthew Heon <mheon@redhat.com>2021-09-16 09:42:14 -0400
commit74bc365eb6f036a87313ffe5acd3561d3c44638f (patch)
treea758b7fc4fe7e35c1cfd344c4d432e75160b50fe /pkg/bindings/system/types_prune_options.go
parente37883f13e6f9e659a044eaa5dba46bab166e3a6 (diff)
downloadpodman-74bc365eb6f036a87313ffe5acd3561d3c44638f.tar.gz
podman-74bc365eb6f036a87313ffe5acd3561d3c44638f.tar.bz2
podman-74bc365eb6f036a87313ffe5acd3561d3c44638f.zip
Enhance bindings for IDE hints
* Follow https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source for leading comment * Add godoc strings for all exposed methods for IDE support * Copy field godoc strings into generated code as function godoc string * Remove unused/unnecessary fields from generator.go structures * Cleanup code regarding template usage Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'pkg/bindings/system/types_prune_options.go')
-rw-r--r--pkg/bindings/system/types_prune_options.go42
1 files changed, 18 insertions, 24 deletions
diff --git a/pkg/bindings/system/types_prune_options.go b/pkg/bindings/system/types_prune_options.go
index f4daa830a..4feb359ef 100644
--- a/pkg/bindings/system/types_prune_options.go
+++ b/pkg/bindings/system/types_prune_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package system
import (
@@ -6,64 +7,57 @@ import (
"github.com/containers/podman/v3/pkg/bindings/internal/util"
)
-/*
-This file is generated automatically by go generate. Do not edit.
-*/
-
-// Changed
+// Changed returns true if named field has been set
func (o *PruneOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *PruneOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithAll
+// WithAll set field All to given value
func (o *PruneOptions) WithAll(value bool) *PruneOptions {
- v := &value
- o.All = v
+ o.All = &value
return o
}
-// GetAll
+// GetAll returns value of field All
func (o *PruneOptions) GetAll() bool {
- var all bool
if o.All == nil {
- return all
+ var z bool
+ return z
}
return *o.All
}
-// WithFilters
+// WithFilters set field Filters to given value
func (o *PruneOptions) WithFilters(value map[string][]string) *PruneOptions {
- v := value
- o.Filters = v
+ o.Filters = value
return o
}
-// GetFilters
+// GetFilters returns value of field Filters
func (o *PruneOptions) GetFilters() map[string][]string {
- var filters map[string][]string
if o.Filters == nil {
- return filters
+ var z map[string][]string
+ return z
}
return o.Filters
}
-// WithVolumes
+// WithVolumes set field Volumes to given value
func (o *PruneOptions) WithVolumes(value bool) *PruneOptions {
- v := &value
- o.Volumes = v
+ o.Volumes = &value
return o
}
-// GetVolumes
+// GetVolumes returns value of field Volumes
func (o *PruneOptions) GetVolumes() bool {
- var volumes bool
if o.Volumes == nil {
- return volumes
+ var z bool
+ return z
}
return *o.Volumes
}