github.com/containers/podman/v4@v4.9.4/pkg/bindings/kube/types_apply_options.go (about) 1 // Code generated by go generate; DO NOT EDIT. 2 package kube 3 4 import ( 5 "net/url" 6 7 "github.com/containers/podman/v4/pkg/bindings/internal/util" 8 ) 9 10 // Changed returns true if named field has been set 11 func (o *ApplyOptions) Changed(fieldName string) bool { 12 return util.Changed(o, fieldName) 13 } 14 15 // ToParams formats struct fields to be passed to API service 16 func (o *ApplyOptions) ToParams() (url.Values, error) { 17 return util.ToParams(o) 18 } 19 20 // WithKubeconfig set field Kubeconfig to given value 21 func (o *ApplyOptions) WithKubeconfig(value string) *ApplyOptions { 22 o.Kubeconfig = &value 23 return o 24 } 25 26 // GetKubeconfig returns value of field Kubeconfig 27 func (o *ApplyOptions) GetKubeconfig() string { 28 if o.Kubeconfig == nil { 29 var z string 30 return z 31 } 32 return *o.Kubeconfig 33 } 34 35 // WithNamespace set field Namespace to given value 36 func (o *ApplyOptions) WithNamespace(value string) *ApplyOptions { 37 o.Namespace = &value 38 return o 39 } 40 41 // GetNamespace returns value of field Namespace 42 func (o *ApplyOptions) GetNamespace() string { 43 if o.Namespace == nil { 44 var z string 45 return z 46 } 47 return *o.Namespace 48 } 49 50 // WithCACertFile set field CACertFile to given value 51 func (o *ApplyOptions) WithCACertFile(value string) *ApplyOptions { 52 o.CACertFile = &value 53 return o 54 } 55 56 // GetCACertFile returns value of field CACertFile 57 func (o *ApplyOptions) GetCACertFile() string { 58 if o.CACertFile == nil { 59 var z string 60 return z 61 } 62 return *o.CACertFile 63 } 64 65 // WithFile set field File to given value 66 func (o *ApplyOptions) WithFile(value string) *ApplyOptions { 67 o.File = &value 68 return o 69 } 70 71 // GetFile returns value of field File 72 func (o *ApplyOptions) GetFile() string { 73 if o.File == nil { 74 var z string 75 return z 76 } 77 return *o.File 78 } 79 80 // WithService set field Service to given value 81 func (o *ApplyOptions) WithService(value bool) *ApplyOptions { 82 o.Service = &value 83 return o 84 } 85 86 // GetService returns value of field Service 87 func (o *ApplyOptions) GetService() bool { 88 if o.Service == nil { 89 var z bool 90 return z 91 } 92 return *o.Service 93 }