summaryrefslogtreecommitdiff
path: root/pkg/bindings/images/types_pull_options.go
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2021-09-13 14:29:22 -0700
committerJhon Honce <jhonce@redhat.com>2021-09-14 07:47:24 -0700
commitd7256be807890892c988cc7d270e3d1bf951397c (patch)
tree53fadc1842f3de6a7c62ab97c8e16f15b0dc4484 /pkg/bindings/images/types_pull_options.go
parentb603c7a4b91d30b33ce987740156f46804f24074 (diff)
downloadpodman-d7256be807890892c988cc7d270e3d1bf951397c.tar.gz
podman-d7256be807890892c988cc7d270e3d1bf951397c.tar.bz2
podman-d7256be807890892c988cc7d270e3d1bf951397c.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/images/types_pull_options.go')
-rw-r--r--pkg/bindings/images/types_pull_options.go119
1 files changed, 53 insertions, 66 deletions
diff --git a/pkg/bindings/images/types_pull_options.go b/pkg/bindings/images/types_pull_options.go
index 8fcf499eb..630235aec 100644
--- a/pkg/bindings/images/types_pull_options.go
+++ b/pkg/bindings/images/types_pull_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,176 +7,162 @@ 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 *PullOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *PullOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithAllTags
+// WithAllTags set field AllTags to given value
func (o *PullOptions) WithAllTags(value bool) *PullOptions {
- v := &value
- o.AllTags = v
+ o.AllTags = &value
return o
}
-// GetAllTags
+// GetAllTags returns value of field AllTags
func (o *PullOptions) GetAllTags() bool {
- var allTags bool
if o.AllTags == nil {
- return allTags
+ var z bool
+ return z
}
return *o.AllTags
}
-// WithArch
+// WithArch set field Arch to given value
func (o *PullOptions) WithArch(value string) *PullOptions {
- v := &value
- o.Arch = v
+ o.Arch = &value
return o
}
-// GetArch
+// GetArch returns value of field Arch
func (o *PullOptions) GetArch() string {
- var arch string
if o.Arch == nil {
- return arch
+ var z string
+ return z
}
return *o.Arch
}
-// WithAuthfile
+// WithAuthfile set field Authfile to given value
func (o *PullOptions) WithAuthfile(value string) *PullOptions {
- v := &value
- o.Authfile = v
+ o.Authfile = &value
return o
}
-// GetAuthfile
+// GetAuthfile returns value of field Authfile
func (o *PullOptions) GetAuthfile() string {
- var authfile string
if o.Authfile == nil {
- return authfile
+ var z string
+ return z
}
return *o.Authfile
}
-// WithOS
+// WithOS set field OS to given value
func (o *PullOptions) WithOS(value string) *PullOptions {
- v := &value
- o.OS = v
+ o.OS = &value
return o
}
-// GetOS
+// GetOS returns value of field OS
func (o *PullOptions) GetOS() string {
- var oS string
if o.OS == nil {
- return oS
+ var z string
+ return z
}
return *o.OS
}
-// WithPolicy
+// WithPolicy set field Policy to given value
func (o *PullOptions) WithPolicy(value string) *PullOptions {
- v := &value
- o.Policy = v
+ o.Policy = &value
return o
}
-// GetPolicy
+// GetPolicy returns value of field Policy
func (o *PullOptions) GetPolicy() string {
- var policy string
if o.Policy == nil {
- return policy
+ var z string
+ return z
}
return *o.Policy
}
-// WithPassword
+// WithPassword set field Password to given value
func (o *PullOptions) WithPassword(value string) *PullOptions {
- v := &value
- o.Password = v
+ o.Password = &value
return o
}
-// GetPassword
+// GetPassword returns value of field Password
func (o *PullOptions) GetPassword() string {
- var password string
if o.Password == nil {
- return password
+ var z string
+ return z
}
return *o.Password
}
-// WithQuiet
+// WithQuiet set field Quiet to given value
func (o *PullOptions) WithQuiet(value bool) *PullOptions {
- v := &value
- o.Quiet = v
+ o.Quiet = &value
return o
}
-// GetQuiet
+// GetQuiet returns value of field Quiet
func (o *PullOptions) GetQuiet() bool {
- var quiet bool
if o.Quiet == nil {
- return quiet
+ var z bool
+ return z
}
return *o.Quiet
}
-// WithSkipTLSVerify
+// WithSkipTLSVerify set field SkipTLSVerify to given value
func (o *PullOptions) WithSkipTLSVerify(value bool) *PullOptions {
- v := &value
- o.SkipTLSVerify = v
+ o.SkipTLSVerify = &value
return o
}
-// GetSkipTLSVerify
+// GetSkipTLSVerify returns value of field SkipTLSVerify
func (o *PullOptions) GetSkipTLSVerify() bool {
- var skipTLSVerify bool
if o.SkipTLSVerify == nil {
- return skipTLSVerify
+ var z bool
+ return z
}
return *o.SkipTLSVerify
}
-// WithUsername
+// WithUsername set field Username to given value
func (o *PullOptions) WithUsername(value string) *PullOptions {
- v := &value
- o.Username = v
+ o.Username = &value
return o
}
-// GetUsername
+// GetUsername returns value of field Username
func (o *PullOptions) GetUsername() string {
- var username string
if o.Username == nil {
- return username
+ var z string
+ return z
}
return *o.Username
}
-// WithVariant
+// WithVariant set field Variant to given value
func (o *PullOptions) WithVariant(value string) *PullOptions {
- v := &value
- o.Variant = v
+ o.Variant = &value
return o
}
-// GetVariant
+// GetVariant returns value of field Variant
func (o *PullOptions) GetVariant() string {
- var variant string
if o.Variant == nil {
- return variant
+ var z string
+ return z
}
return *o.Variant
}