summaryrefslogtreecommitdiff
path: root/pkg/bindings/images
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
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')
-rw-r--r--pkg/bindings/images/types_diff_options.go31
-rw-r--r--pkg/bindings/images/types_exists_options.go9
-rw-r--r--pkg/bindings/images/types_export_options.go31
-rw-r--r--pkg/bindings/images/types_get_options.go20
-rw-r--r--pkg/bindings/images/types_history_options.go9
-rw-r--r--pkg/bindings/images/types_import_options.go53
-rw-r--r--pkg/bindings/images/types_list_options.go31
-rw-r--r--pkg/bindings/images/types_load_options.go20
-rw-r--r--pkg/bindings/images/types_prune_options.go31
-rw-r--r--pkg/bindings/images/types_pull_options.go119
-rw-r--r--pkg/bindings/images/types_push_options.go86
-rw-r--r--pkg/bindings/images/types_remove_options.go31
-rw-r--r--pkg/bindings/images/types_search_options.go75
-rw-r--r--pkg/bindings/images/types_tag_options.go9
-rw-r--r--pkg/bindings/images/types_tree_options.go20
-rw-r--r--pkg/bindings/images/types_untag_options.go9
16 files changed, 248 insertions, 336 deletions
diff --git a/pkg/bindings/images/types_diff_options.go b/pkg/bindings/images/types_diff_options.go
index 5492323f6..658358e95 100644
--- a/pkg/bindings/images/types_diff_options.go
+++ b/pkg/bindings/images/types_diff_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,48 +7,42 @@ 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 *DiffOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *DiffOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithParent
+// WithParent set field Parent to given value
func (o *DiffOptions) WithParent(value string) *DiffOptions {
- v := &value
- o.Parent = v
+ o.Parent = &value
return o
}
-// GetParent
+// GetParent returns value of field Parent
func (o *DiffOptions) GetParent() string {
- var parent string
if o.Parent == nil {
- return parent
+ var z string
+ return z
}
return *o.Parent
}
-// WithDiffType
+// WithDiffType set field DiffType to given value
func (o *DiffOptions) WithDiffType(value string) *DiffOptions {
- v := &value
- o.DiffType = v
+ o.DiffType = &value
return o
}
-// GetDiffType
+// GetDiffType returns value of field DiffType
func (o *DiffOptions) GetDiffType() string {
- var diffType string
if o.DiffType == nil {
- return diffType
+ var z string
+ return z
}
return *o.DiffType
}
diff --git a/pkg/bindings/images/types_exists_options.go b/pkg/bindings/images/types_exists_options.go
index 2326c398b..3158a1a54 100644
--- a/pkg/bindings/images/types_exists_options.go
+++ b/pkg/bindings/images/types_exists_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,16 +7,12 @@ 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 *ExistsOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *ExistsOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
diff --git a/pkg/bindings/images/types_export_options.go b/pkg/bindings/images/types_export_options.go
index 0c5a3390c..6229e435c 100644
--- a/pkg/bindings/images/types_export_options.go
+++ b/pkg/bindings/images/types_export_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,48 +7,42 @@ 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 *ExportOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *ExportOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithCompress
+// WithCompress set field Compress to given value
func (o *ExportOptions) WithCompress(value bool) *ExportOptions {
- v := &value
- o.Compress = v
+ o.Compress = &value
return o
}
-// GetCompress
+// GetCompress returns value of field Compress
func (o *ExportOptions) GetCompress() bool {
- var compress bool
if o.Compress == nil {
- return compress
+ var z bool
+ return z
}
return *o.Compress
}
-// WithFormat
+// WithFormat set field Format to given value
func (o *ExportOptions) WithFormat(value string) *ExportOptions {
- v := &value
- o.Format = v
+ o.Format = &value
return o
}
-// GetFormat
+// GetFormat returns value of field Format
func (o *ExportOptions) GetFormat() string {
- var format string
if o.Format == nil {
- return format
+ var z string
+ return z
}
return *o.Format
}
diff --git a/pkg/bindings/images/types_get_options.go b/pkg/bindings/images/types_get_options.go
index 33da7b0be..9c10b9f54 100644
--- a/pkg/bindings/images/types_get_options.go
+++ b/pkg/bindings/images/types_get_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,32 +7,27 @@ 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 *GetOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *GetOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithSize
+// WithSize set field Size to given value
func (o *GetOptions) WithSize(value bool) *GetOptions {
- v := &value
- o.Size = v
+ o.Size = &value
return o
}
-// GetSize
+// GetSize returns value of field Size
func (o *GetOptions) GetSize() bool {
- var size bool
if o.Size == nil {
- return size
+ var z bool
+ return z
}
return *o.Size
}
diff --git a/pkg/bindings/images/types_history_options.go b/pkg/bindings/images/types_history_options.go
index 191375390..0175b49e6 100644
--- a/pkg/bindings/images/types_history_options.go
+++ b/pkg/bindings/images/types_history_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,16 +7,12 @@ 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 *HistoryOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *HistoryOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
diff --git a/pkg/bindings/images/types_import_options.go b/pkg/bindings/images/types_import_options.go
index 333e841e6..aed567934 100644
--- a/pkg/bindings/images/types_import_options.go
+++ b/pkg/bindings/images/types_import_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,80 +7,72 @@ 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 *ImportOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *ImportOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithChanges
+// WithChanges set field Changes to given value
func (o *ImportOptions) WithChanges(value []string) *ImportOptions {
- v := &value
- o.Changes = v
+ o.Changes = &value
return o
}
-// GetChanges
+// GetChanges returns value of field Changes
func (o *ImportOptions) GetChanges() []string {
- var changes []string
if o.Changes == nil {
- return changes
+ var z []string
+ return z
}
return *o.Changes
}
-// WithMessage
+// WithMessage set field Message to given value
func (o *ImportOptions) WithMessage(value string) *ImportOptions {
- v := &value
- o.Message = v
+ o.Message = &value
return o
}
-// GetMessage
+// GetMessage returns value of field Message
func (o *ImportOptions) GetMessage() string {
- var message string
if o.Message == nil {
- return message
+ var z string
+ return z
}
return *o.Message
}
-// WithReference
+// WithReference set field Reference to given value
func (o *ImportOptions) WithReference(value string) *ImportOptions {
- v := &value
- o.Reference = v
+ o.Reference = &value
return o
}
-// GetReference
+// GetReference returns value of field Reference
func (o *ImportOptions) GetReference() string {
- var reference string
if o.Reference == nil {
- return reference
+ var z string
+ return z
}
return *o.Reference
}
-// WithURL
+// WithURL set field URL to given value
func (o *ImportOptions) WithURL(value string) *ImportOptions {
- v := &value
- o.URL = v
+ o.URL = &value
return o
}
-// GetURL
+// GetURL returns value of field URL
func (o *ImportOptions) GetURL() string {
- var uRL string
if o.URL == nil {
- return uRL
+ var z string
+ return z
}
return *o.URL
}
diff --git a/pkg/bindings/images/types_list_options.go b/pkg/bindings/images/types_list_options.go
index e86157f59..d810e0588 100644
--- a/pkg/bindings/images/types_list_options.go
+++ b/pkg/bindings/images/types_list_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,48 +7,42 @@ 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 *ListOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *ListOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithAll
+// WithAll set field All to given value
func (o *ListOptions) WithAll(value bool) *ListOptions {
- v := &value
- o.All = v
+ o.All = &value
return o
}
-// GetAll
+// GetAll returns value of field All
func (o *ListOptions) 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 *ListOptions) WithFilters(value map[string][]string) *ListOptions {
- v := value
- o.Filters = v
+ o.Filters = value
return o
}
-// GetFilters
+// GetFilters returns value of field Filters
func (o *ListOptions) 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
}
diff --git a/pkg/bindings/images/types_load_options.go b/pkg/bindings/images/types_load_options.go
index 7b2e504d9..b139a96f4 100644
--- a/pkg/bindings/images/types_load_options.go
+++ b/pkg/bindings/images/types_load_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,32 +7,27 @@ 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 *LoadOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *LoadOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithReference
+// WithReference set field Reference to given value
func (o *LoadOptions) WithReference(value string) *LoadOptions {
- v := &value
- o.Reference = v
+ o.Reference = &value
return o
}
-// GetReference
+// GetReference returns value of field Reference
func (o *LoadOptions) GetReference() string {
- var reference string
if o.Reference == nil {
- return reference
+ var z string
+ return z
}
return *o.Reference
}
diff --git a/pkg/bindings/images/types_prune_options.go b/pkg/bindings/images/types_prune_options.go
index 6bd0c0f6f..77bef32e3 100644
--- a/pkg/bindings/images/types_prune_options.go
+++ b/pkg/bindings/images/types_prune_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,48 +7,42 @@ 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
}
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
}
diff --git a/pkg/bindings/images/types_push_options.go b/pkg/bindings/images/types_push_options.go
index 2593c2fe0..183db47aa 100644
--- a/pkg/bindings/images/types_push_options.go
+++ b/pkg/bindings/images/types_push_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,128 +7,117 @@ 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 *PushOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *PushOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithAll
+// WithAll set field All to given value
func (o *PushOptions) WithAll(value bool) *PushOptions {
- v := &value
- o.All = v
+ o.All = &value
return o
}
-// GetAll
+// GetAll returns value of field All
func (o *PushOptions) GetAll() bool {
- var all bool
if o.All == nil {
- return all
+ var z bool
+ return z
}
return *o.All
}
-// WithAuthfile
+// WithAuthfile set field Authfile to given value
func (o *PushOptions) WithAuthfile(value string) *PushOptions {
- v := &value
- o.Authfile = v
+ o.Authfile = &value
return o
}
-// GetAuthfile
+// GetAuthfile returns value of field Authfile
func (o *PushOptions) GetAuthfile() string {
- var authfile string
if o.Authfile == nil {
- return authfile
+ var z string
+ return z
}
return *o.Authfile
}
-// WithCompress
+// WithCompress set field Compress to given value
func (o *PushOptions) WithCompress(value bool) *PushOptions {
- v := &value
- o.Compress = v
+ o.Compress = &value
return o
}
-// GetCompress
+// GetCompress returns value of field Compress
func (o *PushOptions) GetCompress() bool {
- var compress bool
if o.Compress == nil {
- return compress
+ var z bool
+ return z
}
return *o.Compress
}
-// WithFormat
+// WithFormat set field Format to given value
func (o *PushOptions) WithFormat(value string) *PushOptions {
- v := &value
- o.Format = v
+ o.Format = &value
return o
}
-// GetFormat
+// GetFormat returns value of field Format
func (o *PushOptions) GetFormat() string {
- var format string
if o.Format == nil {
- return format
+ var z string
+ return z
}
return *o.Format
}
-// WithPassword
+// WithPassword set field Password to given value
func (o *PushOptions) WithPassword(value string) *PushOptions {
- v := &value
- o.Password = v
+ o.Password = &value
return o
}
-// GetPassword
+// GetPassword returns value of field Password
func (o *PushOptions) GetPassword() string {
- var password string
if o.Password == nil {
- return password
+ var z string
+ return z
}
return *o.Password
}
-// WithSkipTLSVerify
+// WithSkipTLSVerify set field SkipTLSVerify to given value
func (o *PushOptions) WithSkipTLSVerify(value bool) *PushOptions {
- v := &value
- o.SkipTLSVerify = v
+ o.SkipTLSVerify = &value
return o
}
-// GetSkipTLSVerify
+// GetSkipTLSVerify returns value of field SkipTLSVerify
func (o *PushOptions) 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 *PushOptions) WithUsername(value string) *PushOptions {
- v := &value
- o.Username = v
+ o.Username = &value
return o
}
-// GetUsername
+// GetUsername returns value of field Username
func (o *PushOptions) GetUsername() string {
- var username string
if o.Username == nil {
- return username
+ var z string
+ return z
}
return *o.Username
}
diff --git a/pkg/bindings/images/types_remove_options.go b/pkg/bindings/images/types_remove_options.go
index d591aae88..30321db25 100644
--- a/pkg/bindings/images/types_remove_options.go
+++ b/pkg/bindings/images/types_remove_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,48 +7,42 @@ 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 *RemoveOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *RemoveOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithAll
+// WithAll set field All to given value
func (o *RemoveOptions) WithAll(value bool) *RemoveOptions {
- v := &value
- o.All = v
+ o.All = &value
return o
}
-// GetAll
+// GetAll returns value of field All
func (o *RemoveOptions) GetAll() bool {
- var all bool
if o.All == nil {
- return all
+ var z bool
+ return z
}
return *o.All
}
-// WithForce
+// WithForce set field Force to given value
func (o *RemoveOptions) WithForce(value bool) *RemoveOptions {
- v := &value
- o.Force = v
+ o.Force = &value
return o
}
-// GetForce
+// GetForce returns value of field Force
func (o *RemoveOptions) GetForce() bool {
- var force bool
if o.Force == nil {
- return force
+ var z bool
+ return z
}
return *o.Force
}
diff --git a/pkg/bindings/images/types_search_options.go b/pkg/bindings/images/types_search_options.go
index a437a0934..e38ef9fb1 100644
--- a/pkg/bindings/images/types_search_options.go
+++ b/pkg/bindings/images/types_search_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,112 +7,102 @@ 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 *SearchOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *SearchOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithAuthfile
+// WithAuthfile set field Authfile to given value
func (o *SearchOptions) WithAuthfile(value string) *SearchOptions {
- v := &value
- o.Authfile = v
+ o.Authfile = &value
return o
}
-// GetAuthfile
+// GetAuthfile returns value of field Authfile
func (o *SearchOptions) GetAuthfile() string {
- var authfile string
if o.Authfile == nil {
- return authfile
+ var z string
+ return z
}
return *o.Authfile
}
-// WithFilters
+// WithFilters set field Filters to given value
func (o *SearchOptions) WithFilters(value map[string][]string) *SearchOptions {
- v := value
- o.Filters = v
+ o.Filters = value
return o
}
-// GetFilters
+// GetFilters returns value of field Filters
func (o *SearchOptions) 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
}
-// WithLimit
+// WithLimit set field Limit to given value
func (o *SearchOptions) WithLimit(value int) *SearchOptions {
- v := &value
- o.Limit = v
+ o.Limit = &value
return o
}
-// GetLimit
+// GetLimit returns value of field Limit
func (o *SearchOptions) GetLimit() int {
- var limit int
if o.Limit == nil {
- return limit
+ var z int
+ return z
}
return *o.Limit
}
-// WithNoTrunc
+// WithNoTrunc set field NoTrunc to given value
func (o *SearchOptions) WithNoTrunc(value bool) *SearchOptions {
- v := &value
- o.NoTrunc = v
+ o.NoTrunc = &value
return o
}
-// GetNoTrunc
+// GetNoTrunc returns value of field NoTrunc
func (o *SearchOptions) GetNoTrunc() bool {
- var noTrunc bool
if o.NoTrunc == nil {
- return noTrunc
+ var z bool
+ return z
}
return *o.NoTrunc
}
-// WithSkipTLSVerify
+// WithSkipTLSVerify set field SkipTLSVerify to given value
func (o *SearchOptions) WithSkipTLSVerify(value bool) *SearchOptions {
- v := &value
- o.SkipTLSVerify = v
+ o.SkipTLSVerify = &value
return o
}
-// GetSkipTLSVerify
+// GetSkipTLSVerify returns value of field SkipTLSVerify
func (o *SearchOptions) GetSkipTLSVerify() bool {
- var skipTLSVerify bool
if o.SkipTLSVerify == nil {
- return skipTLSVerify
+ var z bool
+ return z
}
return *o.SkipTLSVerify
}
-// WithListTags
+// WithListTags set field ListTags to given value
func (o *SearchOptions) WithListTags(value bool) *SearchOptions {
- v := &value
- o.ListTags = v
+ o.ListTags = &value
return o
}
-// GetListTags
+// GetListTags returns value of field ListTags
func (o *SearchOptions) GetListTags() bool {
- var listTags bool
if o.ListTags == nil {
- return listTags
+ var z bool
+ return z
}
return *o.ListTags
}
diff --git a/pkg/bindings/images/types_tag_options.go b/pkg/bindings/images/types_tag_options.go
index 25cb8f68b..0d5772417 100644
--- a/pkg/bindings/images/types_tag_options.go
+++ b/pkg/bindings/images/types_tag_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,16 +7,12 @@ 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 *TagOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *TagOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
diff --git a/pkg/bindings/images/types_tree_options.go b/pkg/bindings/images/types_tree_options.go
index 43178113d..d70a81b06 100644
--- a/pkg/bindings/images/types_tree_options.go
+++ b/pkg/bindings/images/types_tree_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,32 +7,27 @@ 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 *TreeOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *TreeOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}
-// WithWhatRequires
+// WithWhatRequires set field WhatRequires to given value
func (o *TreeOptions) WithWhatRequires(value bool) *TreeOptions {
- v := &value
- o.WhatRequires = v
+ o.WhatRequires = &value
return o
}
-// GetWhatRequires
+// GetWhatRequires returns value of field WhatRequires
func (o *TreeOptions) GetWhatRequires() bool {
- var whatRequires bool
if o.WhatRequires == nil {
- return whatRequires
+ var z bool
+ return z
}
return *o.WhatRequires
}
diff --git a/pkg/bindings/images/types_untag_options.go b/pkg/bindings/images/types_untag_options.go
index 520cf7a49..5d6cda000 100644
--- a/pkg/bindings/images/types_untag_options.go
+++ b/pkg/bindings/images/types_untag_options.go
@@ -1,3 +1,4 @@
+// Code generated by go generate; DO NOT EDIT.
package images
import (
@@ -6,16 +7,12 @@ 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 *UntagOptions) Changed(fieldName string) bool {
return util.Changed(o, fieldName)
}
-// ToParams
+// ToParams formats struct fields to be passed to API service
func (o *UntagOptions) ToParams() (url.Values, error) {
return util.ToParams(o)
}