Documentation ¶
Index ¶
- Constants
- func FromTrait(from common.ApplicationTrait) (apis.Trait, error)
- type AffinitySpec
- type AffinityTrait
- func (a *AffinityTrait) Build() common.ApplicationTrait
- func (a *AffinityTrait) DefType() string
- func (a *AffinityTrait) FromTrait(from common.ApplicationTrait) (*AffinityTrait, error)
- func (o *AffinityTrait) GetNodeAffinity() NodeAffinity
- func (o *AffinityTrait) GetNodeAffinityOk() (*NodeAffinity, bool)
- func (o *AffinityTrait) GetPodAffinity() PodAffinity
- func (o *AffinityTrait) GetPodAffinityOk() (*PodAffinity, bool)
- func (o *AffinityTrait) GetPodAntiAffinity() PodAntiAffinity
- func (o *AffinityTrait) GetPodAntiAffinityOk() (*PodAntiAffinity, bool)
- func (o *AffinityTrait) GetTolerations() []Tolerations
- func (o *AffinityTrait) GetTolerationsOk() ([]Tolerations, bool)
- func (o *AffinityTrait) HasNodeAffinity() bool
- func (o *AffinityTrait) HasPodAffinity() bool
- func (o *AffinityTrait) HasPodAntiAffinity() bool
- func (o *AffinityTrait) HasTolerations() bool
- func (o *AffinityTrait) SetNodeAffinity(v NodeAffinity) *AffinityTrait
- func (o *AffinityTrait) SetPodAffinity(v PodAffinity) *AffinityTrait
- func (o *AffinityTrait) SetPodAntiAffinity(v PodAntiAffinity) *AffinityTrait
- func (o *AffinityTrait) SetTolerations(v []Tolerations) *AffinityTrait
- func (o *AffinityTrait) Validate() error
- type LabelSelector
- func (o *LabelSelector) GetMatchExpressions() []MatchExpressions
- func (o *LabelSelector) GetMatchExpressionsOk() ([]MatchExpressions, bool)
- func (o *LabelSelector) GetMatchLabels() map[string]string
- func (o *LabelSelector) GetMatchLabelsOk() (map[string]string, bool)
- func (o *LabelSelector) HasMatchExpressions() bool
- func (o *LabelSelector) HasMatchLabels() bool
- func (o LabelSelector) MarshalJSON() ([]byte, error)
- func (o *LabelSelector) SetMatchExpressions(v []MatchExpressions) *LabelSelector
- func (o *LabelSelector) SetMatchLabels(v map[string]string) *LabelSelector
- func (o LabelSelector) ToMap() (map[string]interface{}, error)
- func (o *LabelSelector) Validate() error
- type MatchExpressions
- func (o *MatchExpressions) GetKey() string
- func (o *MatchExpressions) GetKeyOk() (*string, bool)
- func (o *MatchExpressions) GetOperator() string
- func (o *MatchExpressions) GetOperatorOk() (*string, bool)
- func (o *MatchExpressions) GetValues() []string
- func (o *MatchExpressions) GetValuesOk() ([]string, bool)
- func (o *MatchExpressions) HasValues() bool
- func (o MatchExpressions) MarshalJSON() ([]byte, error)
- func (o *MatchExpressions) SetKey(v string) *MatchExpressions
- func (o *MatchExpressions) SetOperator(v string) *MatchExpressions
- func (o *MatchExpressions) SetValues(v []string) *MatchExpressions
- func (o MatchExpressions) ToMap() (map[string]interface{}, error)
- func (o *MatchExpressions) Validate() error
- type NodeAffinity
- func (o *NodeAffinity) GetPreferred() []Preferred
- func (o *NodeAffinity) GetPreferredOk() ([]Preferred, bool)
- func (o *NodeAffinity) GetRequired() Required
- func (o *NodeAffinity) GetRequiredOk() (*Required, bool)
- func (o *NodeAffinity) HasPreferred() bool
- func (o *NodeAffinity) HasRequired() bool
- func (o NodeAffinity) MarshalJSON() ([]byte, error)
- func (o *NodeAffinity) SetPreferred(v []Preferred) *NodeAffinity
- func (o *NodeAffinity) SetRequired(v Required) *NodeAffinity
- func (o NodeAffinity) ToMap() (map[string]interface{}, error)
- func (o *NodeAffinity) Validate() error
- type NodeSelecor
- func (o *NodeSelecor) GetKey() string
- func (o *NodeSelecor) GetKeyOk() (*string, bool)
- func (o *NodeSelecor) GetOperator() string
- func (o *NodeSelecor) GetOperatorOk() (*string, bool)
- func (o *NodeSelecor) GetValues() []string
- func (o *NodeSelecor) GetValuesOk() ([]string, bool)
- func (o *NodeSelecor) HasValues() bool
- func (o NodeSelecor) MarshalJSON() ([]byte, error)
- func (o *NodeSelecor) SetKey(v string) *NodeSelecor
- func (o *NodeSelecor) SetOperator(v string) *NodeSelecor
- func (o *NodeSelecor) SetValues(v []string) *NodeSelecor
- func (o NodeSelecor) ToMap() (map[string]interface{}, error)
- func (o *NodeSelecor) Validate() error
- type NodeSelectorTerm
- func (o *NodeSelectorTerm) GetMatchExpressions() []NodeSelecor
- func (o *NodeSelectorTerm) GetMatchExpressionsOk() ([]NodeSelecor, bool)
- func (o *NodeSelectorTerm) GetMatchFields() []NodeSelecor
- func (o *NodeSelectorTerm) GetMatchFieldsOk() ([]NodeSelecor, bool)
- func (o *NodeSelectorTerm) HasMatchExpressions() bool
- func (o *NodeSelectorTerm) HasMatchFields() bool
- func (o NodeSelectorTerm) MarshalJSON() ([]byte, error)
- func (o *NodeSelectorTerm) SetMatchExpressions(v []NodeSelecor) *NodeSelectorTerm
- func (o *NodeSelectorTerm) SetMatchFields(v []NodeSelecor) *NodeSelectorTerm
- func (o NodeSelectorTerm) ToMap() (map[string]interface{}, error)
- func (o *NodeSelectorTerm) Validate() error
- type NullableAffinitySpec
- func (v *NullableAffinitySpec) Get() *AffinitySpec
- func (v *NullableAffinitySpec) IsSet() bool
- func (v NullableAffinitySpec) MarshalJSON() ([]byte, error)
- func (v *NullableAffinitySpec) Set(val *AffinitySpec)
- func (v *NullableAffinitySpec) UnmarshalJSON(src []byte) error
- func (v *NullableAffinitySpec) Unset()
- type NullableLabelSelector
- func (v *NullableLabelSelector) Get() *LabelSelector
- func (v *NullableLabelSelector) IsSet() bool
- func (v NullableLabelSelector) MarshalJSON() ([]byte, error)
- func (v *NullableLabelSelector) Set(val *LabelSelector)
- func (v *NullableLabelSelector) UnmarshalJSON(src []byte) error
- func (v *NullableLabelSelector) Unset()
- type NullableMatchExpressions
- func (v *NullableMatchExpressions) Get() *MatchExpressions
- func (v *NullableMatchExpressions) IsSet() bool
- func (v NullableMatchExpressions) MarshalJSON() ([]byte, error)
- func (v *NullableMatchExpressions) Set(val *MatchExpressions)
- func (v *NullableMatchExpressions) UnmarshalJSON(src []byte) error
- func (v *NullableMatchExpressions) Unset()
- type NullableNodeAffinity
- func (v *NullableNodeAffinity) Get() *NodeAffinity
- func (v *NullableNodeAffinity) IsSet() bool
- func (v NullableNodeAffinity) MarshalJSON() ([]byte, error)
- func (v *NullableNodeAffinity) Set(val *NodeAffinity)
- func (v *NullableNodeAffinity) UnmarshalJSON(src []byte) error
- func (v *NullableNodeAffinity) Unset()
- type NullableNodeSelecor
- func (v *NullableNodeSelecor) Get() *NodeSelecor
- func (v *NullableNodeSelecor) IsSet() bool
- func (v NullableNodeSelecor) MarshalJSON() ([]byte, error)
- func (v *NullableNodeSelecor) Set(val *NodeSelecor)
- func (v *NullableNodeSelecor) UnmarshalJSON(src []byte) error
- func (v *NullableNodeSelecor) Unset()
- type NullableNodeSelectorTerm
- func (v *NullableNodeSelectorTerm) Get() *NodeSelectorTerm
- func (v *NullableNodeSelectorTerm) IsSet() bool
- func (v NullableNodeSelectorTerm) MarshalJSON() ([]byte, error)
- func (v *NullableNodeSelectorTerm) Set(val *NodeSelectorTerm)
- func (v *NullableNodeSelectorTerm) UnmarshalJSON(src []byte) error
- func (v *NullableNodeSelectorTerm) Unset()
- type NullablePodAffinity
- func (v *NullablePodAffinity) Get() *PodAffinity
- func (v *NullablePodAffinity) IsSet() bool
- func (v NullablePodAffinity) MarshalJSON() ([]byte, error)
- func (v *NullablePodAffinity) Set(val *PodAffinity)
- func (v *NullablePodAffinity) UnmarshalJSON(src []byte) error
- func (v *NullablePodAffinity) Unset()
- type NullablePodAffinityTerm
- func (v *NullablePodAffinityTerm) Get() *PodAffinityTerm
- func (v *NullablePodAffinityTerm) IsSet() bool
- func (v NullablePodAffinityTerm) MarshalJSON() ([]byte, error)
- func (v *NullablePodAffinityTerm) Set(val *PodAffinityTerm)
- func (v *NullablePodAffinityTerm) UnmarshalJSON(src []byte) error
- func (v *NullablePodAffinityTerm) Unset()
- type NullablePodAntiAffinity
- func (v *NullablePodAntiAffinity) Get() *PodAntiAffinity
- func (v *NullablePodAntiAffinity) IsSet() bool
- func (v NullablePodAntiAffinity) MarshalJSON() ([]byte, error)
- func (v *NullablePodAntiAffinity) Set(val *PodAntiAffinity)
- func (v *NullablePodAntiAffinity) UnmarshalJSON(src []byte) error
- func (v *NullablePodAntiAffinity) Unset()
- type NullablePreferred
- type NullablePreferred1
- type NullableRequired
- type NullableTolerations
- func (v *NullableTolerations) Get() *Tolerations
- func (v *NullableTolerations) IsSet() bool
- func (v NullableTolerations) MarshalJSON() ([]byte, error)
- func (v *NullableTolerations) Set(val *Tolerations)
- func (v *NullableTolerations) UnmarshalJSON(src []byte) error
- func (v *NullableTolerations) Unset()
- type PodAffinity
- func (o *PodAffinity) GetPreferred() []Preferred1
- func (o *PodAffinity) GetPreferredOk() ([]Preferred1, bool)
- func (o *PodAffinity) GetRequired() []PodAffinityTerm
- func (o *PodAffinity) GetRequiredOk() ([]PodAffinityTerm, bool)
- func (o *PodAffinity) HasPreferred() bool
- func (o *PodAffinity) HasRequired() bool
- func (o PodAffinity) MarshalJSON() ([]byte, error)
- func (o *PodAffinity) SetPreferred(v []Preferred1) *PodAffinity
- func (o *PodAffinity) SetRequired(v []PodAffinityTerm) *PodAffinity
- func (o PodAffinity) ToMap() (map[string]interface{}, error)
- func (o *PodAffinity) Validate() error
- type PodAffinityTerm
- func (o *PodAffinityTerm) GetLabelSelector() LabelSelector
- func (o *PodAffinityTerm) GetLabelSelectorOk() (*LabelSelector, bool)
- func (o *PodAffinityTerm) GetNamespaceSelector() LabelSelector
- func (o *PodAffinityTerm) GetNamespaceSelectorOk() (*LabelSelector, bool)
- func (o *PodAffinityTerm) GetNamespaces() []string
- func (o *PodAffinityTerm) GetNamespacesOk() ([]string, bool)
- func (o *PodAffinityTerm) GetTopologyKey() string
- func (o *PodAffinityTerm) GetTopologyKeyOk() (*string, bool)
- func (o *PodAffinityTerm) HasLabelSelector() bool
- func (o *PodAffinityTerm) HasNamespaceSelector() bool
- func (o *PodAffinityTerm) HasNamespaces() bool
- func (o PodAffinityTerm) MarshalJSON() ([]byte, error)
- func (o *PodAffinityTerm) SetLabelSelector(v LabelSelector) *PodAffinityTerm
- func (o *PodAffinityTerm) SetNamespaceSelector(v LabelSelector) *PodAffinityTerm
- func (o *PodAffinityTerm) SetNamespaces(v []string) *PodAffinityTerm
- func (o *PodAffinityTerm) SetTopologyKey(v string) *PodAffinityTerm
- func (o PodAffinityTerm) ToMap() (map[string]interface{}, error)
- func (o *PodAffinityTerm) Validate() error
- type PodAntiAffinity
- func (o *PodAntiAffinity) GetPreferred() []Preferred1
- func (o *PodAntiAffinity) GetPreferredOk() ([]Preferred1, bool)
- func (o *PodAntiAffinity) GetRequired() []PodAffinityTerm
- func (o *PodAntiAffinity) GetRequiredOk() ([]PodAffinityTerm, bool)
- func (o *PodAntiAffinity) HasPreferred() bool
- func (o *PodAntiAffinity) HasRequired() bool
- func (o PodAntiAffinity) MarshalJSON() ([]byte, error)
- func (o *PodAntiAffinity) SetPreferred(v []Preferred1) *PodAntiAffinity
- func (o *PodAntiAffinity) SetRequired(v []PodAffinityTerm) *PodAntiAffinity
- func (o PodAntiAffinity) ToMap() (map[string]interface{}, error)
- func (o *PodAntiAffinity) Validate() error
- type Preferred
- func (o *Preferred) GetPreference() NodeSelectorTerm
- func (o *Preferred) GetPreferenceOk() (*NodeSelectorTerm, bool)
- func (o *Preferred) GetWeight() int32
- func (o *Preferred) GetWeightOk() (*int32, bool)
- func (o Preferred) MarshalJSON() ([]byte, error)
- func (o *Preferred) SetPreference(v NodeSelectorTerm) *Preferred
- func (o *Preferred) SetWeight(v int32) *Preferred
- func (o Preferred) ToMap() (map[string]interface{}, error)
- func (o *Preferred) Validate() error
- type Preferred1
- func (o *Preferred1) GetPodAffinityTerm() PodAffinityTerm
- func (o *Preferred1) GetPodAffinityTermOk() (*PodAffinityTerm, bool)
- func (o *Preferred1) GetWeight() int32
- func (o *Preferred1) GetWeightOk() (*int32, bool)
- func (o Preferred1) MarshalJSON() ([]byte, error)
- func (o *Preferred1) SetPodAffinityTerm(v PodAffinityTerm) *Preferred1
- func (o *Preferred1) SetWeight(v int32) *Preferred1
- func (o Preferred1) ToMap() (map[string]interface{}, error)
- func (o *Preferred1) Validate() error
- type Required
- func (o *Required) GetNodeSelectorTerms() []NodeSelectorTerm
- func (o *Required) GetNodeSelectorTermsOk() ([]NodeSelectorTerm, bool)
- func (o Required) MarshalJSON() ([]byte, error)
- func (o *Required) SetNodeSelectorTerms(v []NodeSelectorTerm) *Required
- func (o Required) ToMap() (map[string]interface{}, error)
- func (o *Required) Validate() error
- type Tolerations
- func (o *Tolerations) GetEffect() string
- func (o *Tolerations) GetEffectOk() (*string, bool)
- func (o *Tolerations) GetKey() string
- func (o *Tolerations) GetKeyOk() (*string, bool)
- func (o *Tolerations) GetOperator() string
- func (o *Tolerations) GetOperatorOk() (*string, bool)
- func (o *Tolerations) GetTolerationSeconds() int32
- func (o *Tolerations) GetTolerationSecondsOk() (*int32, bool)
- func (o *Tolerations) GetValue() string
- func (o *Tolerations) GetValueOk() (*string, bool)
- func (o *Tolerations) HasEffect() bool
- func (o *Tolerations) HasKey() bool
- func (o *Tolerations) HasTolerationSeconds() bool
- func (o *Tolerations) HasValue() bool
- func (o Tolerations) MarshalJSON() ([]byte, error)
- func (o *Tolerations) SetEffect(v string) *Tolerations
- func (o *Tolerations) SetKey(v string) *Tolerations
- func (o *Tolerations) SetOperator(v string) *Tolerations
- func (o *Tolerations) SetTolerationSeconds(v int32) *Tolerations
- func (o *Tolerations) SetValue(v string) *Tolerations
- func (o Tolerations) ToMap() (map[string]interface{}, error)
- func (o *Tolerations) Validate() error
Constants ¶
const AffinityType = "affinity"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AffinitySpec ¶
type AffinitySpec struct { NodeAffinity *NodeAffinity `json:"nodeAffinity,omitempty"` PodAffinity *PodAffinity `json:"podAffinity,omitempty"` PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty"` // Specify tolerant taint Tolerations []Tolerations `json:"tolerations,omitempty"` }
AffinitySpec struct for AffinitySpec
func NewAffinitySpec ¶
func NewAffinitySpec() *AffinitySpec
NewAffinitySpec is short for NewAffinitySpecWithDefault which instantiates a new AffinitySpec object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewAffinitySpecEmpty ¶
func NewAffinitySpecEmpty() *AffinitySpec
NewAffinitySpecEmpty instantiates a new AffinitySpec object with no properties set. This constructor will not assign any default values to properties.
func NewAffinitySpecList ¶
func NewAffinitySpecList(ps ...*AffinitySpec) []AffinitySpec
NewAffinitySpecs converts a list AffinitySpec pointers to objects. This is helpful when the SetAffinitySpec requires a list of objects
func NewAffinitySpecWith ¶
func NewAffinitySpecWith() *AffinitySpec
NewAffinitySpecWith instantiates a new AffinitySpec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewAffinitySpecWithDefault ¶
func NewAffinitySpecWithDefault() *AffinitySpec
NewAffinitySpecWithDefault instantiates a new AffinitySpec object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (AffinitySpec) MarshalJSON ¶
func (o AffinitySpec) MarshalJSON() ([]byte, error)
func (AffinitySpec) ToMap ¶
func (o AffinitySpec) ToMap() (map[string]interface{}, error)
type AffinityTrait ¶
type AffinityTrait struct { Base apis.TraitBase Properties AffinitySpec }
func Affinity ¶
func Affinity() *AffinityTrait
func (*AffinityTrait) Build ¶
func (a *AffinityTrait) Build() common.ApplicationTrait
func (*AffinityTrait) DefType ¶
func (a *AffinityTrait) DefType() string
func (*AffinityTrait) FromTrait ¶
func (a *AffinityTrait) FromTrait(from common.ApplicationTrait) (*AffinityTrait, error)
func (*AffinityTrait) GetNodeAffinity ¶
func (o *AffinityTrait) GetNodeAffinity() NodeAffinity
GetNodeAffinity returns the NodeAffinity field value if set, zero value otherwise.
func (*AffinityTrait) GetNodeAffinityOk ¶
func (o *AffinityTrait) GetNodeAffinityOk() (*NodeAffinity, bool)
GetNodeAffinityOk returns a tuple with the NodeAffinity field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AffinityTrait) GetPodAffinity ¶
func (o *AffinityTrait) GetPodAffinity() PodAffinity
GetPodAffinity returns the PodAffinity field value if set, zero value otherwise.
func (*AffinityTrait) GetPodAffinityOk ¶
func (o *AffinityTrait) GetPodAffinityOk() (*PodAffinity, bool)
GetPodAffinityOk returns a tuple with the PodAffinity field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AffinityTrait) GetPodAntiAffinity ¶
func (o *AffinityTrait) GetPodAntiAffinity() PodAntiAffinity
GetPodAntiAffinity returns the PodAntiAffinity field value if set, zero value otherwise.
func (*AffinityTrait) GetPodAntiAffinityOk ¶
func (o *AffinityTrait) GetPodAntiAffinityOk() (*PodAntiAffinity, bool)
GetPodAntiAffinityOk returns a tuple with the PodAntiAffinity field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AffinityTrait) GetTolerations ¶
func (o *AffinityTrait) GetTolerations() []Tolerations
GetTolerations returns the Tolerations field value if set, zero value otherwise.
func (*AffinityTrait) GetTolerationsOk ¶
func (o *AffinityTrait) GetTolerationsOk() ([]Tolerations, bool)
GetTolerationsOk returns a tuple with the Tolerations field value if set, nil otherwise and a boolean to check if the value has been set.
func (*AffinityTrait) HasNodeAffinity ¶
func (o *AffinityTrait) HasNodeAffinity() bool
HasNodeAffinity returns a boolean if a field has been set.
func (*AffinityTrait) HasPodAffinity ¶
func (o *AffinityTrait) HasPodAffinity() bool
HasPodAffinity returns a boolean if a field has been set.
func (*AffinityTrait) HasPodAntiAffinity ¶
func (o *AffinityTrait) HasPodAntiAffinity() bool
HasPodAntiAffinity returns a boolean if a field has been set.
func (*AffinityTrait) HasTolerations ¶
func (o *AffinityTrait) HasTolerations() bool
HasTolerations returns a boolean if a field has been set.
func (*AffinityTrait) SetNodeAffinity ¶
func (o *AffinityTrait) SetNodeAffinity(v NodeAffinity) *AffinityTrait
SetNodeAffinity gets a reference to the given NodeAffinity and assigns it to the nodeAffinity field. NodeAffinity:
func (*AffinityTrait) SetPodAffinity ¶
func (o *AffinityTrait) SetPodAffinity(v PodAffinity) *AffinityTrait
SetPodAffinity gets a reference to the given PodAffinity and assigns it to the podAffinity field. PodAffinity:
func (*AffinityTrait) SetPodAntiAffinity ¶
func (o *AffinityTrait) SetPodAntiAffinity(v PodAntiAffinity) *AffinityTrait
SetPodAntiAffinity gets a reference to the given PodAntiAffinity and assigns it to the podAntiAffinity field. PodAntiAffinity:
func (*AffinityTrait) SetTolerations ¶
func (o *AffinityTrait) SetTolerations(v []Tolerations) *AffinityTrait
SetTolerations gets a reference to the given []Tolerations and assigns it to the tolerations field. Tolerations: Specify tolerant taint
func (*AffinityTrait) Validate ¶
func (o *AffinityTrait) Validate() error
Validate validates this AffinitySpec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type LabelSelector ¶
type LabelSelector struct { MatchExpressions []MatchExpressions `json:"matchExpressions,omitempty"` MatchLabels map[string]string `json:"matchLabels,omitempty"` }
LabelSelector struct for LabelSelector
func NewLabelSelector ¶
func NewLabelSelector() *LabelSelector
NewLabelSelector is short for NewLabelSelectorWithDefault which instantiates a new LabelSelector object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewLabelSelectorEmpty ¶
func NewLabelSelectorEmpty() *LabelSelector
NewLabelSelectorEmpty instantiates a new LabelSelector object with no properties set. This constructor will not assign any default values to properties.
func NewLabelSelectorList ¶
func NewLabelSelectorList(ps ...*LabelSelector) []LabelSelector
NewLabelSelectors converts a list LabelSelector pointers to objects. This is helpful when the SetLabelSelector requires a list of objects
func NewLabelSelectorWith ¶
func NewLabelSelectorWith() *LabelSelector
NewLabelSelectorWith instantiates a new LabelSelector object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewLabelSelectorWithDefault ¶
func NewLabelSelectorWithDefault() *LabelSelector
NewLabelSelectorWithDefault instantiates a new LabelSelector object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*LabelSelector) GetMatchExpressions ¶
func (o *LabelSelector) GetMatchExpressions() []MatchExpressions
GetMatchExpressions returns the MatchExpressions field value if set, zero value otherwise.
func (*LabelSelector) GetMatchExpressionsOk ¶
func (o *LabelSelector) GetMatchExpressionsOk() ([]MatchExpressions, bool)
GetMatchExpressionsOk returns a tuple with the MatchExpressions field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LabelSelector) GetMatchLabels ¶
func (o *LabelSelector) GetMatchLabels() map[string]string
GetMatchLabels returns the MatchLabels field value if set, zero value otherwise.
func (*LabelSelector) GetMatchLabelsOk ¶
func (o *LabelSelector) GetMatchLabelsOk() (map[string]string, bool)
GetMatchLabelsOk returns a tuple with the MatchLabels field value if set, nil otherwise and a boolean to check if the value has been set.
func (*LabelSelector) HasMatchExpressions ¶
func (o *LabelSelector) HasMatchExpressions() bool
HasMatchExpressions returns a boolean if a field has been set.
func (*LabelSelector) HasMatchLabels ¶
func (o *LabelSelector) HasMatchLabels() bool
HasMatchLabels returns a boolean if a field has been set.
func (LabelSelector) MarshalJSON ¶
func (o LabelSelector) MarshalJSON() ([]byte, error)
func (*LabelSelector) SetMatchExpressions ¶
func (o *LabelSelector) SetMatchExpressions(v []MatchExpressions) *LabelSelector
SetMatchExpressions gets a reference to the given []MatchExpressions and assigns it to the matchExpressions field. MatchExpressions:
func (*LabelSelector) SetMatchLabels ¶
func (o *LabelSelector) SetMatchLabels(v map[string]string) *LabelSelector
SetMatchLabels gets a reference to the given map[string]string and assigns it to the matchLabels field. MatchLabels:
func (LabelSelector) ToMap ¶
func (o LabelSelector) ToMap() (map[string]interface{}, error)
func (*LabelSelector) Validate ¶
func (o *LabelSelector) Validate() error
Validate validates this LabelSelector 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type MatchExpressions ¶
type MatchExpressions struct { Key *string `json:"key"` Operator *string `json:"operator"` Values []string `json:"values,omitempty"` }
MatchExpressions struct for MatchExpressions
func NewMatchExpressions ¶
func NewMatchExpressions() *MatchExpressions
NewMatchExpressions is short for NewMatchExpressionsWithDefault which instantiates a new MatchExpressions object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewMatchExpressionsEmpty ¶
func NewMatchExpressionsEmpty() *MatchExpressions
NewMatchExpressionsEmpty instantiates a new MatchExpressions object with no properties set. This constructor will not assign any default values to properties.
func NewMatchExpressionsList ¶
func NewMatchExpressionsList(ps ...*MatchExpressions) []MatchExpressions
NewMatchExpressionss converts a list MatchExpressions pointers to objects. This is helpful when the SetMatchExpressions requires a list of objects
func NewMatchExpressionsWith ¶
func NewMatchExpressionsWith(key string, operator string) *MatchExpressions
NewMatchExpressionsWith instantiates a new MatchExpressions object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewMatchExpressionsWithDefault ¶
func NewMatchExpressionsWithDefault() *MatchExpressions
NewMatchExpressionsWithDefault instantiates a new MatchExpressions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*MatchExpressions) GetKey ¶
func (o *MatchExpressions) GetKey() string
GetKey returns the Key field value
func (*MatchExpressions) GetKeyOk ¶
func (o *MatchExpressions) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.
func (*MatchExpressions) GetOperator ¶
func (o *MatchExpressions) GetOperator() string
GetOperator returns the Operator field value
func (*MatchExpressions) GetOperatorOk ¶
func (o *MatchExpressions) GetOperatorOk() (*string, bool)
GetOperatorOk returns a tuple with the Operator field value and a boolean to check if the value has been set.
func (*MatchExpressions) GetValues ¶
func (o *MatchExpressions) GetValues() []string
GetValues returns the Values field value if set, zero value otherwise.
func (*MatchExpressions) GetValuesOk ¶
func (o *MatchExpressions) GetValuesOk() ([]string, bool)
GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.
func (*MatchExpressions) HasValues ¶
func (o *MatchExpressions) HasValues() bool
HasValues returns a boolean if a field has been set.
func (MatchExpressions) MarshalJSON ¶
func (o MatchExpressions) MarshalJSON() ([]byte, error)
func (*MatchExpressions) SetKey ¶
func (o *MatchExpressions) SetKey(v string) *MatchExpressions
SetKey sets field value
func (*MatchExpressions) SetOperator ¶
func (o *MatchExpressions) SetOperator(v string) *MatchExpressions
SetOperator sets field value
func (*MatchExpressions) SetValues ¶
func (o *MatchExpressions) SetValues(v []string) *MatchExpressions
SetValues gets a reference to the given []string and assigns it to the values field. Values:
func (MatchExpressions) ToMap ¶
func (o MatchExpressions) ToMap() (map[string]interface{}, error)
func (*MatchExpressions) Validate ¶
func (o *MatchExpressions) Validate() error
Validate validates this MatchExpressions 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type NodeAffinity ¶
type NodeAffinity struct { // Specify the preferred during scheduling ignored during execution Preferred []Preferred `json:"preferred,omitempty"` Required *Required `json:"required,omitempty"` }
NodeAffinity Specify the node affinity scheduling rules for the pod
func NewNodeAffinity ¶
func NewNodeAffinity() *NodeAffinity
NewNodeAffinity is short for NewNodeAffinityWithDefault which instantiates a new NodeAffinity object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewNodeAffinityEmpty ¶
func NewNodeAffinityEmpty() *NodeAffinity
NewNodeAffinityEmpty instantiates a new NodeAffinity object with no properties set. This constructor will not assign any default values to properties.
func NewNodeAffinityList ¶
func NewNodeAffinityList(ps ...*NodeAffinity) []NodeAffinity
NewNodeAffinitys converts a list NodeAffinity pointers to objects. This is helpful when the SetNodeAffinity requires a list of objects
func NewNodeAffinityWith ¶
func NewNodeAffinityWith() *NodeAffinity
NewNodeAffinityWith instantiates a new NodeAffinity object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewNodeAffinityWithDefault ¶
func NewNodeAffinityWithDefault() *NodeAffinity
NewNodeAffinityWithDefault instantiates a new NodeAffinity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*NodeAffinity) GetPreferred ¶
func (o *NodeAffinity) GetPreferred() []Preferred
GetPreferred returns the Preferred field value if set, zero value otherwise.
func (*NodeAffinity) GetPreferredOk ¶
func (o *NodeAffinity) GetPreferredOk() ([]Preferred, bool)
GetPreferredOk returns a tuple with the Preferred field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NodeAffinity) GetRequired ¶
func (o *NodeAffinity) GetRequired() Required
GetRequired returns the Required field value if set, zero value otherwise.
func (*NodeAffinity) GetRequiredOk ¶
func (o *NodeAffinity) GetRequiredOk() (*Required, bool)
GetRequiredOk returns a tuple with the Required field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NodeAffinity) HasPreferred ¶
func (o *NodeAffinity) HasPreferred() bool
HasPreferred returns a boolean if a field has been set.
func (*NodeAffinity) HasRequired ¶
func (o *NodeAffinity) HasRequired() bool
HasRequired returns a boolean if a field has been set.
func (NodeAffinity) MarshalJSON ¶
func (o NodeAffinity) MarshalJSON() ([]byte, error)
func (*NodeAffinity) SetPreferred ¶
func (o *NodeAffinity) SetPreferred(v []Preferred) *NodeAffinity
SetPreferred gets a reference to the given []Preferred and assigns it to the preferred field. Preferred: Specify the preferred during scheduling ignored during execution
func (*NodeAffinity) SetRequired ¶
func (o *NodeAffinity) SetRequired(v Required) *NodeAffinity
SetRequired gets a reference to the given Required and assigns it to the required field. Required:
func (NodeAffinity) ToMap ¶
func (o NodeAffinity) ToMap() (map[string]interface{}, error)
func (*NodeAffinity) Validate ¶
func (o *NodeAffinity) Validate() error
Validate validates this NodeAffinity 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type NodeSelecor ¶
type NodeSelecor struct { Key *string `json:"key"` Operator *string `json:"operator"` Values []string `json:"values,omitempty"` }
NodeSelecor struct for NodeSelecor
func NewNodeSelecor ¶
func NewNodeSelecor() *NodeSelecor
NewNodeSelecor is short for NewNodeSelecorWithDefault which instantiates a new NodeSelecor object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewNodeSelecorEmpty ¶
func NewNodeSelecorEmpty() *NodeSelecor
NewNodeSelecorEmpty instantiates a new NodeSelecor object with no properties set. This constructor will not assign any default values to properties.
func NewNodeSelecorList ¶
func NewNodeSelecorList(ps ...*NodeSelecor) []NodeSelecor
NewNodeSelecors converts a list NodeSelecor pointers to objects. This is helpful when the SetNodeSelecor requires a list of objects
func NewNodeSelecorWith ¶
func NewNodeSelecorWith(key string, operator string) *NodeSelecor
NewNodeSelecorWith instantiates a new NodeSelecor object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewNodeSelecorWithDefault ¶
func NewNodeSelecorWithDefault() *NodeSelecor
NewNodeSelecorWithDefault instantiates a new NodeSelecor object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*NodeSelecor) GetKey ¶
func (o *NodeSelecor) GetKey() string
GetKey returns the Key field value
func (*NodeSelecor) GetKeyOk ¶
func (o *NodeSelecor) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.
func (*NodeSelecor) GetOperator ¶
func (o *NodeSelecor) GetOperator() string
GetOperator returns the Operator field value
func (*NodeSelecor) GetOperatorOk ¶
func (o *NodeSelecor) GetOperatorOk() (*string, bool)
GetOperatorOk returns a tuple with the Operator field value and a boolean to check if the value has been set.
func (*NodeSelecor) GetValues ¶
func (o *NodeSelecor) GetValues() []string
GetValues returns the Values field value if set, zero value otherwise.
func (*NodeSelecor) GetValuesOk ¶
func (o *NodeSelecor) GetValuesOk() ([]string, bool)
GetValuesOk returns a tuple with the Values field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NodeSelecor) HasValues ¶
func (o *NodeSelecor) HasValues() bool
HasValues returns a boolean if a field has been set.
func (NodeSelecor) MarshalJSON ¶
func (o NodeSelecor) MarshalJSON() ([]byte, error)
func (*NodeSelecor) SetKey ¶
func (o *NodeSelecor) SetKey(v string) *NodeSelecor
SetKey sets field value
func (*NodeSelecor) SetOperator ¶
func (o *NodeSelecor) SetOperator(v string) *NodeSelecor
SetOperator sets field value
func (*NodeSelecor) SetValues ¶
func (o *NodeSelecor) SetValues(v []string) *NodeSelecor
SetValues gets a reference to the given []string and assigns it to the values field. Values:
func (NodeSelecor) ToMap ¶
func (o NodeSelecor) ToMap() (map[string]interface{}, error)
func (*NodeSelecor) Validate ¶
func (o *NodeSelecor) Validate() error
Validate validates this NodeSelecor 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type NodeSelectorTerm ¶
type NodeSelectorTerm struct { MatchExpressions []NodeSelecor `json:"matchExpressions,omitempty"` MatchFields []NodeSelecor `json:"matchFields,omitempty"` }
NodeSelectorTerm struct for NodeSelectorTerm
func NewNodeSelectorTerm ¶
func NewNodeSelectorTerm() *NodeSelectorTerm
NewNodeSelectorTerm is short for NewNodeSelectorTermWithDefault which instantiates a new NodeSelectorTerm object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewNodeSelectorTermEmpty ¶
func NewNodeSelectorTermEmpty() *NodeSelectorTerm
NewNodeSelectorTermEmpty instantiates a new NodeSelectorTerm object with no properties set. This constructor will not assign any default values to properties.
func NewNodeSelectorTermList ¶
func NewNodeSelectorTermList(ps ...*NodeSelectorTerm) []NodeSelectorTerm
NewNodeSelectorTerms converts a list NodeSelectorTerm pointers to objects. This is helpful when the SetNodeSelectorTerm requires a list of objects
func NewNodeSelectorTermWith ¶
func NewNodeSelectorTermWith() *NodeSelectorTerm
NewNodeSelectorTermWith instantiates a new NodeSelectorTerm object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewNodeSelectorTermWithDefault ¶
func NewNodeSelectorTermWithDefault() *NodeSelectorTerm
NewNodeSelectorTermWithDefault instantiates a new NodeSelectorTerm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*NodeSelectorTerm) GetMatchExpressions ¶
func (o *NodeSelectorTerm) GetMatchExpressions() []NodeSelecor
GetMatchExpressions returns the MatchExpressions field value if set, zero value otherwise.
func (*NodeSelectorTerm) GetMatchExpressionsOk ¶
func (o *NodeSelectorTerm) GetMatchExpressionsOk() ([]NodeSelecor, bool)
GetMatchExpressionsOk returns a tuple with the MatchExpressions field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NodeSelectorTerm) GetMatchFields ¶
func (o *NodeSelectorTerm) GetMatchFields() []NodeSelecor
GetMatchFields returns the MatchFields field value if set, zero value otherwise.
func (*NodeSelectorTerm) GetMatchFieldsOk ¶
func (o *NodeSelectorTerm) GetMatchFieldsOk() ([]NodeSelecor, bool)
GetMatchFieldsOk returns a tuple with the MatchFields field value if set, nil otherwise and a boolean to check if the value has been set.
func (*NodeSelectorTerm) HasMatchExpressions ¶
func (o *NodeSelectorTerm) HasMatchExpressions() bool
HasMatchExpressions returns a boolean if a field has been set.
func (*NodeSelectorTerm) HasMatchFields ¶
func (o *NodeSelectorTerm) HasMatchFields() bool
HasMatchFields returns a boolean if a field has been set.
func (NodeSelectorTerm) MarshalJSON ¶
func (o NodeSelectorTerm) MarshalJSON() ([]byte, error)
func (*NodeSelectorTerm) SetMatchExpressions ¶
func (o *NodeSelectorTerm) SetMatchExpressions(v []NodeSelecor) *NodeSelectorTerm
SetMatchExpressions gets a reference to the given []NodeSelecor and assigns it to the matchExpressions field. MatchExpressions:
func (*NodeSelectorTerm) SetMatchFields ¶
func (o *NodeSelectorTerm) SetMatchFields(v []NodeSelecor) *NodeSelectorTerm
SetMatchFields gets a reference to the given []NodeSelecor and assigns it to the matchFields field. MatchFields:
func (NodeSelectorTerm) ToMap ¶
func (o NodeSelectorTerm) ToMap() (map[string]interface{}, error)
func (*NodeSelectorTerm) Validate ¶
func (o *NodeSelectorTerm) Validate() error
Validate validates this NodeSelectorTerm 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type NullableAffinitySpec ¶
type NullableAffinitySpec struct {
// contains filtered or unexported fields
}
func NewNullableAffinitySpec ¶
func NewNullableAffinitySpec(val *AffinitySpec) *NullableAffinitySpec
func (*NullableAffinitySpec) Get ¶
func (v *NullableAffinitySpec) Get() *AffinitySpec
func (*NullableAffinitySpec) IsSet ¶
func (v *NullableAffinitySpec) IsSet() bool
func (NullableAffinitySpec) MarshalJSON ¶
func (v NullableAffinitySpec) MarshalJSON() ([]byte, error)
func (*NullableAffinitySpec) Set ¶
func (v *NullableAffinitySpec) Set(val *AffinitySpec)
func (*NullableAffinitySpec) UnmarshalJSON ¶
func (v *NullableAffinitySpec) UnmarshalJSON(src []byte) error
func (*NullableAffinitySpec) Unset ¶
func (v *NullableAffinitySpec) Unset()
type NullableLabelSelector ¶
type NullableLabelSelector struct {
// contains filtered or unexported fields
}
func NewNullableLabelSelector ¶
func NewNullableLabelSelector(val *LabelSelector) *NullableLabelSelector
func (*NullableLabelSelector) Get ¶
func (v *NullableLabelSelector) Get() *LabelSelector
func (*NullableLabelSelector) IsSet ¶
func (v *NullableLabelSelector) IsSet() bool
func (NullableLabelSelector) MarshalJSON ¶
func (v NullableLabelSelector) MarshalJSON() ([]byte, error)
func (*NullableLabelSelector) Set ¶
func (v *NullableLabelSelector) Set(val *LabelSelector)
func (*NullableLabelSelector) UnmarshalJSON ¶
func (v *NullableLabelSelector) UnmarshalJSON(src []byte) error
func (*NullableLabelSelector) Unset ¶
func (v *NullableLabelSelector) Unset()
type NullableMatchExpressions ¶
type NullableMatchExpressions struct {
// contains filtered or unexported fields
}
func NewNullableMatchExpressions ¶
func NewNullableMatchExpressions(val *MatchExpressions) *NullableMatchExpressions
func (*NullableMatchExpressions) Get ¶
func (v *NullableMatchExpressions) Get() *MatchExpressions
func (*NullableMatchExpressions) IsSet ¶
func (v *NullableMatchExpressions) IsSet() bool
func (NullableMatchExpressions) MarshalJSON ¶
func (v NullableMatchExpressions) MarshalJSON() ([]byte, error)
func (*NullableMatchExpressions) Set ¶
func (v *NullableMatchExpressions) Set(val *MatchExpressions)
func (*NullableMatchExpressions) UnmarshalJSON ¶
func (v *NullableMatchExpressions) UnmarshalJSON(src []byte) error
func (*NullableMatchExpressions) Unset ¶
func (v *NullableMatchExpressions) Unset()
type NullableNodeAffinity ¶
type NullableNodeAffinity struct {
// contains filtered or unexported fields
}
func NewNullableNodeAffinity ¶
func NewNullableNodeAffinity(val *NodeAffinity) *NullableNodeAffinity
func (*NullableNodeAffinity) Get ¶
func (v *NullableNodeAffinity) Get() *NodeAffinity
func (*NullableNodeAffinity) IsSet ¶
func (v *NullableNodeAffinity) IsSet() bool
func (NullableNodeAffinity) MarshalJSON ¶
func (v NullableNodeAffinity) MarshalJSON() ([]byte, error)
func (*NullableNodeAffinity) Set ¶
func (v *NullableNodeAffinity) Set(val *NodeAffinity)
func (*NullableNodeAffinity) UnmarshalJSON ¶
func (v *NullableNodeAffinity) UnmarshalJSON(src []byte) error
func (*NullableNodeAffinity) Unset ¶
func (v *NullableNodeAffinity) Unset()
type NullableNodeSelecor ¶
type NullableNodeSelecor struct {
// contains filtered or unexported fields
}
func NewNullableNodeSelecor ¶
func NewNullableNodeSelecor(val *NodeSelecor) *NullableNodeSelecor
func (*NullableNodeSelecor) Get ¶
func (v *NullableNodeSelecor) Get() *NodeSelecor
func (*NullableNodeSelecor) IsSet ¶
func (v *NullableNodeSelecor) IsSet() bool
func (NullableNodeSelecor) MarshalJSON ¶
func (v NullableNodeSelecor) MarshalJSON() ([]byte, error)
func (*NullableNodeSelecor) Set ¶
func (v *NullableNodeSelecor) Set(val *NodeSelecor)
func (*NullableNodeSelecor) UnmarshalJSON ¶
func (v *NullableNodeSelecor) UnmarshalJSON(src []byte) error
func (*NullableNodeSelecor) Unset ¶
func (v *NullableNodeSelecor) Unset()
type NullableNodeSelectorTerm ¶
type NullableNodeSelectorTerm struct {
// contains filtered or unexported fields
}
func NewNullableNodeSelectorTerm ¶
func NewNullableNodeSelectorTerm(val *NodeSelectorTerm) *NullableNodeSelectorTerm
func (*NullableNodeSelectorTerm) Get ¶
func (v *NullableNodeSelectorTerm) Get() *NodeSelectorTerm
func (*NullableNodeSelectorTerm) IsSet ¶
func (v *NullableNodeSelectorTerm) IsSet() bool
func (NullableNodeSelectorTerm) MarshalJSON ¶
func (v NullableNodeSelectorTerm) MarshalJSON() ([]byte, error)
func (*NullableNodeSelectorTerm) Set ¶
func (v *NullableNodeSelectorTerm) Set(val *NodeSelectorTerm)
func (*NullableNodeSelectorTerm) UnmarshalJSON ¶
func (v *NullableNodeSelectorTerm) UnmarshalJSON(src []byte) error
func (*NullableNodeSelectorTerm) Unset ¶
func (v *NullableNodeSelectorTerm) Unset()
type NullablePodAffinity ¶
type NullablePodAffinity struct {
// contains filtered or unexported fields
}
func NewNullablePodAffinity ¶
func NewNullablePodAffinity(val *PodAffinity) *NullablePodAffinity
func (*NullablePodAffinity) Get ¶
func (v *NullablePodAffinity) Get() *PodAffinity
func (*NullablePodAffinity) IsSet ¶
func (v *NullablePodAffinity) IsSet() bool
func (NullablePodAffinity) MarshalJSON ¶
func (v NullablePodAffinity) MarshalJSON() ([]byte, error)
func (*NullablePodAffinity) Set ¶
func (v *NullablePodAffinity) Set(val *PodAffinity)
func (*NullablePodAffinity) UnmarshalJSON ¶
func (v *NullablePodAffinity) UnmarshalJSON(src []byte) error
func (*NullablePodAffinity) Unset ¶
func (v *NullablePodAffinity) Unset()
type NullablePodAffinityTerm ¶
type NullablePodAffinityTerm struct {
// contains filtered or unexported fields
}
func NewNullablePodAffinityTerm ¶
func NewNullablePodAffinityTerm(val *PodAffinityTerm) *NullablePodAffinityTerm
func (*NullablePodAffinityTerm) Get ¶
func (v *NullablePodAffinityTerm) Get() *PodAffinityTerm
func (*NullablePodAffinityTerm) IsSet ¶
func (v *NullablePodAffinityTerm) IsSet() bool
func (NullablePodAffinityTerm) MarshalJSON ¶
func (v NullablePodAffinityTerm) MarshalJSON() ([]byte, error)
func (*NullablePodAffinityTerm) Set ¶
func (v *NullablePodAffinityTerm) Set(val *PodAffinityTerm)
func (*NullablePodAffinityTerm) UnmarshalJSON ¶
func (v *NullablePodAffinityTerm) UnmarshalJSON(src []byte) error
func (*NullablePodAffinityTerm) Unset ¶
func (v *NullablePodAffinityTerm) Unset()
type NullablePodAntiAffinity ¶
type NullablePodAntiAffinity struct {
// contains filtered or unexported fields
}
func NewNullablePodAntiAffinity ¶
func NewNullablePodAntiAffinity(val *PodAntiAffinity) *NullablePodAntiAffinity
func (*NullablePodAntiAffinity) Get ¶
func (v *NullablePodAntiAffinity) Get() *PodAntiAffinity
func (*NullablePodAntiAffinity) IsSet ¶
func (v *NullablePodAntiAffinity) IsSet() bool
func (NullablePodAntiAffinity) MarshalJSON ¶
func (v NullablePodAntiAffinity) MarshalJSON() ([]byte, error)
func (*NullablePodAntiAffinity) Set ¶
func (v *NullablePodAntiAffinity) Set(val *PodAntiAffinity)
func (*NullablePodAntiAffinity) UnmarshalJSON ¶
func (v *NullablePodAntiAffinity) UnmarshalJSON(src []byte) error
func (*NullablePodAntiAffinity) Unset ¶
func (v *NullablePodAntiAffinity) Unset()
type NullablePreferred ¶
type NullablePreferred struct {
// contains filtered or unexported fields
}
func NewNullablePreferred ¶
func NewNullablePreferred(val *Preferred) *NullablePreferred
func (*NullablePreferred) Get ¶
func (v *NullablePreferred) Get() *Preferred
func (*NullablePreferred) IsSet ¶
func (v *NullablePreferred) IsSet() bool
func (NullablePreferred) MarshalJSON ¶
func (v NullablePreferred) MarshalJSON() ([]byte, error)
func (*NullablePreferred) Set ¶
func (v *NullablePreferred) Set(val *Preferred)
func (*NullablePreferred) UnmarshalJSON ¶
func (v *NullablePreferred) UnmarshalJSON(src []byte) error
func (*NullablePreferred) Unset ¶
func (v *NullablePreferred) Unset()
type NullablePreferred1 ¶
type NullablePreferred1 struct {
// contains filtered or unexported fields
}
func NewNullablePreferred1 ¶
func NewNullablePreferred1(val *Preferred1) *NullablePreferred1
func (*NullablePreferred1) Get ¶
func (v *NullablePreferred1) Get() *Preferred1
func (*NullablePreferred1) IsSet ¶
func (v *NullablePreferred1) IsSet() bool
func (NullablePreferred1) MarshalJSON ¶
func (v NullablePreferred1) MarshalJSON() ([]byte, error)
func (*NullablePreferred1) Set ¶
func (v *NullablePreferred1) Set(val *Preferred1)
func (*NullablePreferred1) UnmarshalJSON ¶
func (v *NullablePreferred1) UnmarshalJSON(src []byte) error
func (*NullablePreferred1) Unset ¶
func (v *NullablePreferred1) Unset()
type NullableRequired ¶
type NullableRequired struct {
// contains filtered or unexported fields
}
func NewNullableRequired ¶
func NewNullableRequired(val *Required) *NullableRequired
func (*NullableRequired) Get ¶
func (v *NullableRequired) Get() *Required
func (*NullableRequired) IsSet ¶
func (v *NullableRequired) IsSet() bool
func (NullableRequired) MarshalJSON ¶
func (v NullableRequired) MarshalJSON() ([]byte, error)
func (*NullableRequired) Set ¶
func (v *NullableRequired) Set(val *Required)
func (*NullableRequired) UnmarshalJSON ¶
func (v *NullableRequired) UnmarshalJSON(src []byte) error
func (*NullableRequired) Unset ¶
func (v *NullableRequired) Unset()
type NullableTolerations ¶
type NullableTolerations struct {
// contains filtered or unexported fields
}
func NewNullableTolerations ¶
func NewNullableTolerations(val *Tolerations) *NullableTolerations
func (*NullableTolerations) Get ¶
func (v *NullableTolerations) Get() *Tolerations
func (*NullableTolerations) IsSet ¶
func (v *NullableTolerations) IsSet() bool
func (NullableTolerations) MarshalJSON ¶
func (v NullableTolerations) MarshalJSON() ([]byte, error)
func (*NullableTolerations) Set ¶
func (v *NullableTolerations) Set(val *Tolerations)
func (*NullableTolerations) UnmarshalJSON ¶
func (v *NullableTolerations) UnmarshalJSON(src []byte) error
func (*NullableTolerations) Unset ¶
func (v *NullableTolerations) Unset()
type PodAffinity ¶
type PodAffinity struct { // Specify the preferred during scheduling ignored during execution Preferred []Preferred1 `json:"preferred,omitempty"` // Specify the required during scheduling ignored during execution Required []PodAffinityTerm `json:"required,omitempty"` }
PodAffinity Specify the pod affinity scheduling rules
func NewPodAffinity ¶
func NewPodAffinity() *PodAffinity
NewPodAffinity is short for NewPodAffinityWithDefault which instantiates a new PodAffinity object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewPodAffinityEmpty ¶
func NewPodAffinityEmpty() *PodAffinity
NewPodAffinityEmpty instantiates a new PodAffinity object with no properties set. This constructor will not assign any default values to properties.
func NewPodAffinityList ¶
func NewPodAffinityList(ps ...*PodAffinity) []PodAffinity
NewPodAffinitys converts a list PodAffinity pointers to objects. This is helpful when the SetPodAffinity requires a list of objects
func NewPodAffinityWith ¶
func NewPodAffinityWith() *PodAffinity
NewPodAffinityWith instantiates a new PodAffinity object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewPodAffinityWithDefault ¶
func NewPodAffinityWithDefault() *PodAffinity
NewPodAffinityWithDefault instantiates a new PodAffinity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*PodAffinity) GetPreferred ¶
func (o *PodAffinity) GetPreferred() []Preferred1
GetPreferred returns the Preferred field value if set, zero value otherwise.
func (*PodAffinity) GetPreferredOk ¶
func (o *PodAffinity) GetPreferredOk() ([]Preferred1, bool)
GetPreferredOk returns a tuple with the Preferred field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PodAffinity) GetRequired ¶
func (o *PodAffinity) GetRequired() []PodAffinityTerm
GetRequired returns the Required field value if set, zero value otherwise.
func (*PodAffinity) GetRequiredOk ¶
func (o *PodAffinity) GetRequiredOk() ([]PodAffinityTerm, bool)
GetRequiredOk returns a tuple with the Required field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PodAffinity) HasPreferred ¶
func (o *PodAffinity) HasPreferred() bool
HasPreferred returns a boolean if a field has been set.
func (*PodAffinity) HasRequired ¶
func (o *PodAffinity) HasRequired() bool
HasRequired returns a boolean if a field has been set.
func (PodAffinity) MarshalJSON ¶
func (o PodAffinity) MarshalJSON() ([]byte, error)
func (*PodAffinity) SetPreferred ¶
func (o *PodAffinity) SetPreferred(v []Preferred1) *PodAffinity
SetPreferred gets a reference to the given []Preferred1 and assigns it to the preferred field. Preferred: Specify the preferred during scheduling ignored during execution
func (*PodAffinity) SetRequired ¶
func (o *PodAffinity) SetRequired(v []PodAffinityTerm) *PodAffinity
SetRequired gets a reference to the given []PodAffinityTerm and assigns it to the required field. Required: Specify the required during scheduling ignored during execution
func (PodAffinity) ToMap ¶
func (o PodAffinity) ToMap() (map[string]interface{}, error)
func (*PodAffinity) Validate ¶
func (o *PodAffinity) Validate() error
Validate validates this PodAffinity 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type PodAffinityTerm ¶
type PodAffinityTerm struct { LabelSelector *LabelSelector `json:"labelSelector,omitempty"` NamespaceSelector *LabelSelector `json:"namespaceSelector,omitempty"` Namespaces []string `json:"namespaces,omitempty"` TopologyKey *string `json:"topologyKey"` }
PodAffinityTerm struct for PodAffinityTerm
func NewPodAffinityTerm ¶
func NewPodAffinityTerm() *PodAffinityTerm
NewPodAffinityTerm is short for NewPodAffinityTermWithDefault which instantiates a new PodAffinityTerm object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewPodAffinityTermEmpty ¶
func NewPodAffinityTermEmpty() *PodAffinityTerm
NewPodAffinityTermEmpty instantiates a new PodAffinityTerm object with no properties set. This constructor will not assign any default values to properties.
func NewPodAffinityTermList ¶
func NewPodAffinityTermList(ps ...*PodAffinityTerm) []PodAffinityTerm
NewPodAffinityTerms converts a list PodAffinityTerm pointers to objects. This is helpful when the SetPodAffinityTerm requires a list of objects
func NewPodAffinityTermWith ¶
func NewPodAffinityTermWith(topologyKey string) *PodAffinityTerm
NewPodAffinityTermWith instantiates a new PodAffinityTerm object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewPodAffinityTermWithDefault ¶
func NewPodAffinityTermWithDefault() *PodAffinityTerm
NewPodAffinityTermWithDefault instantiates a new PodAffinityTerm object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*PodAffinityTerm) GetLabelSelector ¶
func (o *PodAffinityTerm) GetLabelSelector() LabelSelector
GetLabelSelector returns the LabelSelector field value if set, zero value otherwise.
func (*PodAffinityTerm) GetLabelSelectorOk ¶
func (o *PodAffinityTerm) GetLabelSelectorOk() (*LabelSelector, bool)
GetLabelSelectorOk returns a tuple with the LabelSelector field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PodAffinityTerm) GetNamespaceSelector ¶
func (o *PodAffinityTerm) GetNamespaceSelector() LabelSelector
GetNamespaceSelector returns the NamespaceSelector field value if set, zero value otherwise.
func (*PodAffinityTerm) GetNamespaceSelectorOk ¶
func (o *PodAffinityTerm) GetNamespaceSelectorOk() (*LabelSelector, bool)
GetNamespaceSelectorOk returns a tuple with the NamespaceSelector field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PodAffinityTerm) GetNamespaces ¶
func (o *PodAffinityTerm) GetNamespaces() []string
GetNamespaces returns the Namespaces field value if set, zero value otherwise.
func (*PodAffinityTerm) GetNamespacesOk ¶
func (o *PodAffinityTerm) GetNamespacesOk() ([]string, bool)
GetNamespacesOk returns a tuple with the Namespaces field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PodAffinityTerm) GetTopologyKey ¶
func (o *PodAffinityTerm) GetTopologyKey() string
GetTopologyKey returns the TopologyKey field value
func (*PodAffinityTerm) GetTopologyKeyOk ¶
func (o *PodAffinityTerm) GetTopologyKeyOk() (*string, bool)
GetTopologyKeyOk returns a tuple with the TopologyKey field value and a boolean to check if the value has been set.
func (*PodAffinityTerm) HasLabelSelector ¶
func (o *PodAffinityTerm) HasLabelSelector() bool
HasLabelSelector returns a boolean if a field has been set.
func (*PodAffinityTerm) HasNamespaceSelector ¶
func (o *PodAffinityTerm) HasNamespaceSelector() bool
HasNamespaceSelector returns a boolean if a field has been set.
func (*PodAffinityTerm) HasNamespaces ¶
func (o *PodAffinityTerm) HasNamespaces() bool
HasNamespaces returns a boolean if a field has been set.
func (PodAffinityTerm) MarshalJSON ¶
func (o PodAffinityTerm) MarshalJSON() ([]byte, error)
func (*PodAffinityTerm) SetLabelSelector ¶
func (o *PodAffinityTerm) SetLabelSelector(v LabelSelector) *PodAffinityTerm
SetLabelSelector gets a reference to the given LabelSelector and assigns it to the labelSelector field. LabelSelector:
func (*PodAffinityTerm) SetNamespaceSelector ¶
func (o *PodAffinityTerm) SetNamespaceSelector(v LabelSelector) *PodAffinityTerm
SetNamespaceSelector gets a reference to the given LabelSelector and assigns it to the namespaceSelector field. NamespaceSelector:
func (*PodAffinityTerm) SetNamespaces ¶
func (o *PodAffinityTerm) SetNamespaces(v []string) *PodAffinityTerm
SetNamespaces gets a reference to the given []string and assigns it to the namespaces field. Namespaces:
func (*PodAffinityTerm) SetTopologyKey ¶
func (o *PodAffinityTerm) SetTopologyKey(v string) *PodAffinityTerm
SetTopologyKey sets field value
func (PodAffinityTerm) ToMap ¶
func (o PodAffinityTerm) ToMap() (map[string]interface{}, error)
func (*PodAffinityTerm) Validate ¶
func (o *PodAffinityTerm) Validate() error
Validate validates this PodAffinityTerm 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type PodAntiAffinity ¶
type PodAntiAffinity struct { // Specify the preferred during scheduling ignored during execution Preferred []Preferred1 `json:"preferred,omitempty"` // Specify the required during scheduling ignored during execution Required []PodAffinityTerm `json:"required,omitempty"` }
PodAntiAffinity Specify the pod anti-affinity scheduling rules
func NewPodAntiAffinity ¶
func NewPodAntiAffinity() *PodAntiAffinity
NewPodAntiAffinity is short for NewPodAntiAffinityWithDefault which instantiates a new PodAntiAffinity object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewPodAntiAffinityEmpty ¶
func NewPodAntiAffinityEmpty() *PodAntiAffinity
NewPodAntiAffinityEmpty instantiates a new PodAntiAffinity object with no properties set. This constructor will not assign any default values to properties.
func NewPodAntiAffinityList ¶
func NewPodAntiAffinityList(ps ...*PodAntiAffinity) []PodAntiAffinity
NewPodAntiAffinitys converts a list PodAntiAffinity pointers to objects. This is helpful when the SetPodAntiAffinity requires a list of objects
func NewPodAntiAffinityWith ¶
func NewPodAntiAffinityWith() *PodAntiAffinity
NewPodAntiAffinityWith instantiates a new PodAntiAffinity object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewPodAntiAffinityWithDefault ¶
func NewPodAntiAffinityWithDefault() *PodAntiAffinity
NewPodAntiAffinityWithDefault instantiates a new PodAntiAffinity object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*PodAntiAffinity) GetPreferred ¶
func (o *PodAntiAffinity) GetPreferred() []Preferred1
GetPreferred returns the Preferred field value if set, zero value otherwise.
func (*PodAntiAffinity) GetPreferredOk ¶
func (o *PodAntiAffinity) GetPreferredOk() ([]Preferred1, bool)
GetPreferredOk returns a tuple with the Preferred field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PodAntiAffinity) GetRequired ¶
func (o *PodAntiAffinity) GetRequired() []PodAffinityTerm
GetRequired returns the Required field value if set, zero value otherwise.
func (*PodAntiAffinity) GetRequiredOk ¶
func (o *PodAntiAffinity) GetRequiredOk() ([]PodAffinityTerm, bool)
GetRequiredOk returns a tuple with the Required field value if set, nil otherwise and a boolean to check if the value has been set.
func (*PodAntiAffinity) HasPreferred ¶
func (o *PodAntiAffinity) HasPreferred() bool
HasPreferred returns a boolean if a field has been set.
func (*PodAntiAffinity) HasRequired ¶
func (o *PodAntiAffinity) HasRequired() bool
HasRequired returns a boolean if a field has been set.
func (PodAntiAffinity) MarshalJSON ¶
func (o PodAntiAffinity) MarshalJSON() ([]byte, error)
func (*PodAntiAffinity) SetPreferred ¶
func (o *PodAntiAffinity) SetPreferred(v []Preferred1) *PodAntiAffinity
SetPreferred gets a reference to the given []Preferred1 and assigns it to the preferred field. Preferred: Specify the preferred during scheduling ignored during execution
func (*PodAntiAffinity) SetRequired ¶
func (o *PodAntiAffinity) SetRequired(v []PodAffinityTerm) *PodAntiAffinity
SetRequired gets a reference to the given []PodAffinityTerm and assigns it to the required field. Required: Specify the required during scheduling ignored during execution
func (PodAntiAffinity) ToMap ¶
func (o PodAntiAffinity) ToMap() (map[string]interface{}, error)
func (*PodAntiAffinity) Validate ¶
func (o *PodAntiAffinity) Validate() error
Validate validates this PodAntiAffinity 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type Preferred ¶
type Preferred struct { Preference *NodeSelectorTerm `json:"preference"` // Specify weight associated with matching the corresponding nodeSelector Weight *int32 `json:"weight"` }
Preferred struct for Preferred
func NewPreferred ¶
func NewPreferred() *Preferred
NewPreferred is short for NewPreferredWithDefault which instantiates a new Preferred object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewPreferredEmpty ¶
func NewPreferredEmpty() *Preferred
NewPreferredEmpty instantiates a new Preferred object with no properties set. This constructor will not assign any default values to properties.
func NewPreferredList ¶
NewPreferreds converts a list Preferred pointers to objects. This is helpful when the SetPreferred requires a list of objects
func NewPreferredWith ¶
func NewPreferredWith(preference NodeSelectorTerm, weight int32) *Preferred
NewPreferredWith instantiates a new Preferred object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewPreferredWithDefault ¶
func NewPreferredWithDefault() *Preferred
NewPreferredWithDefault instantiates a new Preferred object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Preferred) GetPreference ¶
func (o *Preferred) GetPreference() NodeSelectorTerm
GetPreference returns the Preference field value
func (*Preferred) GetPreferenceOk ¶
func (o *Preferred) GetPreferenceOk() (*NodeSelectorTerm, bool)
GetPreferenceOk returns a tuple with the Preference field value and a boolean to check if the value has been set.
func (*Preferred) GetWeightOk ¶
GetWeightOk returns a tuple with the Weight field value and a boolean to check if the value has been set.
func (Preferred) MarshalJSON ¶
func (*Preferred) SetPreference ¶
func (o *Preferred) SetPreference(v NodeSelectorTerm) *Preferred
SetPreference sets field value
type Preferred1 ¶
type Preferred1 struct { PodAffinityTerm *PodAffinityTerm `json:"podAffinityTerm"` // Specify weight associated with matching the corresponding podAffinityTerm Weight *int32 `json:"weight"` }
Preferred1 struct for Preferred1
func NewPreferred1 ¶
func NewPreferred1() *Preferred1
NewPreferred1 is short for NewPreferred1WithDefault which instantiates a new Preferred1 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewPreferred1Empty ¶
func NewPreferred1Empty() *Preferred1
NewPreferred1Empty instantiates a new Preferred1 object with no properties set. This constructor will not assign any default values to properties.
func NewPreferred1List ¶
func NewPreferred1List(ps ...*Preferred1) []Preferred1
NewPreferred1s converts a list Preferred1 pointers to objects. This is helpful when the SetPreferred1 requires a list of objects
func NewPreferred1With ¶
func NewPreferred1With(podAffinityTerm PodAffinityTerm, weight int32) *Preferred1
NewPreferred1With instantiates a new Preferred1 object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewPreferred1WithDefault ¶
func NewPreferred1WithDefault() *Preferred1
NewPreferred1WithDefault instantiates a new Preferred1 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Preferred1) GetPodAffinityTerm ¶
func (o *Preferred1) GetPodAffinityTerm() PodAffinityTerm
GetPodAffinityTerm returns the PodAffinityTerm field value
func (*Preferred1) GetPodAffinityTermOk ¶
func (o *Preferred1) GetPodAffinityTermOk() (*PodAffinityTerm, bool)
GetPodAffinityTermOk returns a tuple with the PodAffinityTerm field value and a boolean to check if the value has been set.
func (*Preferred1) GetWeight ¶
func (o *Preferred1) GetWeight() int32
GetWeight returns the Weight field value
func (*Preferred1) GetWeightOk ¶
func (o *Preferred1) GetWeightOk() (*int32, bool)
GetWeightOk returns a tuple with the Weight field value and a boolean to check if the value has been set.
func (Preferred1) MarshalJSON ¶
func (o Preferred1) MarshalJSON() ([]byte, error)
func (*Preferred1) SetPodAffinityTerm ¶
func (o *Preferred1) SetPodAffinityTerm(v PodAffinityTerm) *Preferred1
SetPodAffinityTerm sets field value
func (*Preferred1) SetWeight ¶
func (o *Preferred1) SetWeight(v int32) *Preferred1
SetWeight sets field value
func (Preferred1) ToMap ¶
func (o Preferred1) ToMap() (map[string]interface{}, error)
func (*Preferred1) Validate ¶
func (o *Preferred1) Validate() error
Validate validates this Preferred1 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set
type Required ¶
type Required struct { // Specify a list of node selector NodeSelectorTerms []NodeSelectorTerm `json:"nodeSelectorTerms"` }
Required Specify the required during scheduling ignored during execution
func NewRequired ¶
func NewRequired() *Required
NewRequired is short for NewRequiredWithDefault which instantiates a new Required object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewRequiredEmpty ¶
func NewRequiredEmpty() *Required
NewRequiredEmpty instantiates a new Required object with no properties set. This constructor will not assign any default values to properties.
func NewRequiredList ¶
NewRequireds converts a list Required pointers to objects. This is helpful when the SetRequired requires a list of objects
func NewRequiredWith ¶
func NewRequiredWith(nodeSelectorTerms []NodeSelectorTerm) *Required
NewRequiredWith instantiates a new Required object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewRequiredWithDefault ¶
func NewRequiredWithDefault() *Required
NewRequiredWithDefault instantiates a new Required object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Required) GetNodeSelectorTerms ¶
func (o *Required) GetNodeSelectorTerms() []NodeSelectorTerm
GetNodeSelectorTerms returns the NodeSelectorTerms field value
func (*Required) GetNodeSelectorTermsOk ¶
func (o *Required) GetNodeSelectorTermsOk() ([]NodeSelectorTerm, bool)
GetNodeSelectorTermsOk returns a tuple with the NodeSelectorTerms field value and a boolean to check if the value has been set.
func (Required) MarshalJSON ¶
func (*Required) SetNodeSelectorTerms ¶
func (o *Required) SetNodeSelectorTerms(v []NodeSelectorTerm) *Required
SetNodeSelectorTerms sets field value
type Tolerations ¶
type Tolerations struct { Effect *string `json:"effect,omitempty"` Key *string `json:"key,omitempty"` Operator *string `json:"operator"` // Specify the period of time the toleration TolerationSeconds *int32 `json:"tolerationSeconds,omitempty"` Value *string `json:"value,omitempty"` }
Tolerations struct for Tolerations
func NewTolerations ¶
func NewTolerations() *Tolerations
NewTolerations is short for NewTolerationsWithDefault which instantiates a new Tolerations object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func NewTolerationsEmpty ¶
func NewTolerationsEmpty() *Tolerations
NewTolerationsEmpty instantiates a new Tolerations object with no properties set. This constructor will not assign any default values to properties.
func NewTolerationsList ¶
func NewTolerationsList(ps ...*Tolerations) []Tolerations
NewTolerationss converts a list Tolerations pointers to objects. This is helpful when the SetTolerations requires a list of objects
func NewTolerationsWith ¶
func NewTolerationsWith(operator string) *Tolerations
NewTolerationsWith instantiates a new Tolerations object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed
func NewTolerationsWithDefault ¶
func NewTolerationsWithDefault() *Tolerations
NewTolerationsWithDefault instantiates a new Tolerations object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (*Tolerations) GetEffect ¶
func (o *Tolerations) GetEffect() string
GetEffect returns the Effect field value if set, zero value otherwise.
func (*Tolerations) GetEffectOk ¶
func (o *Tolerations) GetEffectOk() (*string, bool)
GetEffectOk returns a tuple with the Effect field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Tolerations) GetKey ¶
func (o *Tolerations) GetKey() string
GetKey returns the Key field value if set, zero value otherwise.
func (*Tolerations) GetKeyOk ¶
func (o *Tolerations) GetKeyOk() (*string, bool)
GetKeyOk returns a tuple with the Key field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Tolerations) GetOperator ¶
func (o *Tolerations) GetOperator() string
GetOperator returns the Operator field value
func (*Tolerations) GetOperatorOk ¶
func (o *Tolerations) GetOperatorOk() (*string, bool)
GetOperatorOk returns a tuple with the Operator field value and a boolean to check if the value has been set.
func (*Tolerations) GetTolerationSeconds ¶
func (o *Tolerations) GetTolerationSeconds() int32
GetTolerationSeconds returns the TolerationSeconds field value if set, zero value otherwise.
func (*Tolerations) GetTolerationSecondsOk ¶
func (o *Tolerations) GetTolerationSecondsOk() (*int32, bool)
GetTolerationSecondsOk returns a tuple with the TolerationSeconds field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Tolerations) GetValue ¶
func (o *Tolerations) GetValue() string
GetValue returns the Value field value if set, zero value otherwise.
func (*Tolerations) GetValueOk ¶
func (o *Tolerations) GetValueOk() (*string, bool)
GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Tolerations) HasEffect ¶
func (o *Tolerations) HasEffect() bool
HasEffect returns a boolean if a field has been set.
func (*Tolerations) HasKey ¶
func (o *Tolerations) HasKey() bool
HasKey returns a boolean if a field has been set.
func (*Tolerations) HasTolerationSeconds ¶
func (o *Tolerations) HasTolerationSeconds() bool
HasTolerationSeconds returns a boolean if a field has been set.
func (*Tolerations) HasValue ¶
func (o *Tolerations) HasValue() bool
HasValue returns a boolean if a field has been set.
func (Tolerations) MarshalJSON ¶
func (o Tolerations) MarshalJSON() ([]byte, error)
func (*Tolerations) SetEffect ¶
func (o *Tolerations) SetEffect(v string) *Tolerations
SetEffect gets a reference to the given string and assigns it to the effect field. Effect:
func (*Tolerations) SetKey ¶
func (o *Tolerations) SetKey(v string) *Tolerations
SetKey gets a reference to the given string and assigns it to the key field. Key:
func (*Tolerations) SetOperator ¶
func (o *Tolerations) SetOperator(v string) *Tolerations
SetOperator sets field value
func (*Tolerations) SetTolerationSeconds ¶
func (o *Tolerations) SetTolerationSeconds(v int32) *Tolerations
SetTolerationSeconds gets a reference to the given int32 and assigns it to the tolerationSeconds field. TolerationSeconds: Specify the period of time the toleration
func (*Tolerations) SetValue ¶
func (o *Tolerations) SetValue(v string) *Tolerations
SetValue gets a reference to the given string and assigns it to the value field. Value:
func (Tolerations) ToMap ¶
func (o Tolerations) ToMap() (map[string]interface{}, error)
func (*Tolerations) Validate ¶
func (o *Tolerations) Validate() error
Validate validates this Tolerations 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set