Documentation ¶
Index ¶
- Constants
- func FromTrait(from common.ApplicationTrait) (apis.Trait, error)
- type Constraints
- func (o *Constraints) GetLabelSelector() LabSelector
- func (o *Constraints) GetLabelSelectorOk() (*LabSelector, bool)
- func (o *Constraints) GetMatchLabelKeys() []string
- func (o *Constraints) GetMatchLabelKeysOk() ([]string, bool)
- func (o *Constraints) GetMaxSkew() int32
- func (o *Constraints) GetMaxSkewOk() (*int32, bool)
- func (o *Constraints) GetMinDomains() int32
- func (o *Constraints) GetMinDomainsOk() (*int32, bool)
- func (o *Constraints) GetNodeAffinityPolicy() string
- func (o *Constraints) GetNodeAffinityPolicyOk() (*string, bool)
- func (o *Constraints) GetNodeTaintsPolicy() string
- func (o *Constraints) GetNodeTaintsPolicyOk() (*string, bool)
- func (o *Constraints) GetTopologyKey() string
- func (o *Constraints) GetTopologyKeyOk() (*string, bool)
- func (o *Constraints) GetWhenUnsatisfiable() string
- func (o *Constraints) GetWhenUnsatisfiableOk() (*string, bool)
- func (o *Constraints) HasMatchLabelKeys() bool
- func (o *Constraints) HasMinDomains() bool
- func (o *Constraints) HasNodeAffinityPolicy() bool
- func (o *Constraints) HasNodeTaintsPolicy() bool
- func (o Constraints) MarshalJSON() ([]byte, error)
- func (o *Constraints) SetLabelSelector(v LabSelector) *Constraints
- func (o *Constraints) SetMatchLabelKeys(v []string) *Constraints
- func (o *Constraints) SetMaxSkew(v int32) *Constraints
- func (o *Constraints) SetMinDomains(v int32) *Constraints
- func (o *Constraints) SetNodeAffinityPolicy(v string) *Constraints
- func (o *Constraints) SetNodeTaintsPolicy(v string) *Constraints
- func (o *Constraints) SetTopologyKey(v string) *Constraints
- func (o *Constraints) SetWhenUnsatisfiable(v string) *Constraints
- func (o Constraints) ToMap() (map[string]interface{}, error)
- func (o *Constraints) Validate() error
- type LabSelector
- func (o *LabSelector) GetMatchExpressions() []MatchExpressions
- func (o *LabSelector) GetMatchExpressionsOk() ([]MatchExpressions, bool)
- func (o *LabSelector) GetMatchLabels() map[string]string
- func (o *LabSelector) GetMatchLabelsOk() (map[string]string, bool)
- func (o *LabSelector) HasMatchExpressions() bool
- func (o *LabSelector) HasMatchLabels() bool
- func (o LabSelector) MarshalJSON() ([]byte, error)
- func (o *LabSelector) SetMatchExpressions(v []MatchExpressions) *LabSelector
- func (o *LabSelector) SetMatchLabels(v map[string]string) *LabSelector
- func (o LabSelector) ToMap() (map[string]interface{}, error)
- func (o *LabSelector) 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 NullableConstraints
- func (v *NullableConstraints) Get() *Constraints
- func (v *NullableConstraints) IsSet() bool
- func (v NullableConstraints) MarshalJSON() ([]byte, error)
- func (v *NullableConstraints) Set(val *Constraints)
- func (v *NullableConstraints) UnmarshalJSON(src []byte) error
- func (v *NullableConstraints) Unset()
- type NullableLabSelector
- func (v *NullableLabSelector) Get() *LabSelector
- func (v *NullableLabSelector) IsSet() bool
- func (v NullableLabSelector) MarshalJSON() ([]byte, error)
- func (v *NullableLabSelector) Set(val *LabSelector)
- func (v *NullableLabSelector) UnmarshalJSON(src []byte) error
- func (v *NullableLabSelector) 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 NullableTopologyspreadconstraintsSpec
- func (v *NullableTopologyspreadconstraintsSpec) Get() *TopologyspreadconstraintsSpec
- func (v *NullableTopologyspreadconstraintsSpec) IsSet() bool
- func (v NullableTopologyspreadconstraintsSpec) MarshalJSON() ([]byte, error)
- func (v *NullableTopologyspreadconstraintsSpec) Set(val *TopologyspreadconstraintsSpec)
- func (v *NullableTopologyspreadconstraintsSpec) UnmarshalJSON(src []byte) error
- func (v *NullableTopologyspreadconstraintsSpec) Unset()
- type TopologyspreadconstraintsSpec
- func NewTopologyspreadconstraintsSpec() *TopologyspreadconstraintsSpec
- func NewTopologyspreadconstraintsSpecEmpty() *TopologyspreadconstraintsSpec
- func NewTopologyspreadconstraintsSpecList(ps ...*TopologyspreadconstraintsSpec) []TopologyspreadconstraintsSpec
- func NewTopologyspreadconstraintsSpecWith(constraints []Constraints) *TopologyspreadconstraintsSpec
- func NewTopologyspreadconstraintsSpecWithDefault() *TopologyspreadconstraintsSpec
- type TopologyspreadconstraintsTrait
- func (t *TopologyspreadconstraintsTrait) Build() common.ApplicationTrait
- func (t *TopologyspreadconstraintsTrait) DefType() string
- func (t *TopologyspreadconstraintsTrait) FromTrait(from common.ApplicationTrait) (*TopologyspreadconstraintsTrait, error)
- func (o *TopologyspreadconstraintsTrait) GetConstraints() []Constraints
- func (o *TopologyspreadconstraintsTrait) GetConstraintsOk() ([]Constraints, bool)
- func (o *TopologyspreadconstraintsTrait) SetConstraints(v []Constraints) *TopologyspreadconstraintsTrait
- func (o *TopologyspreadconstraintsTrait) Validate() error
Constants ¶
const TopologyspreadconstraintsType = "topologyspreadconstraints"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Constraints ¶
type Constraints struct { LabelSelector *LabSelector `json:"labelSelector"` // A list of pod label keys to select the pods over which spreading will be calculated MatchLabelKeys []string `json:"matchLabelKeys,omitempty"` // Describe the degree to which Pods may be unevenly distributed MaxSkew *int32 `json:"maxSkew"` // Indicate a minimum number of eligible domains MinDomains *int32 `json:"minDomains,omitempty"` // Indicate how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew NodeAffinityPolicy *string `json:"nodeAffinityPolicy,omitempty"` // Indicate how we will treat node taints when calculating pod topology spread skew NodeTaintsPolicy *string `json:"nodeTaintsPolicy,omitempty"` // Specify the key of node labels TopologyKey *string `json:"topologyKey"` // Indicate how to deal with a Pod if it doesn't satisfy the spread constraint WhenUnsatisfiable *string `json:"whenUnsatisfiable"` }
Constraints struct for Constraints
func NewConstraints ¶
func NewConstraints() *Constraints
NewConstraints is short for NewConstraintsWithDefault which instantiates a new Constraints 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 NewConstraintsEmpty ¶
func NewConstraintsEmpty() *Constraints
NewConstraintsEmpty instantiates a new Constraints object with no properties set. This constructor will not assign any default values to properties.
func NewConstraintsList ¶
func NewConstraintsList(ps ...*Constraints) []Constraints
NewConstraintss converts a list Constraints pointers to objects. This is helpful when the SetConstraints requires a list of objects
func NewConstraintsWith ¶
func NewConstraintsWith(labelSelector LabSelector, maxSkew int32, topologyKey string, whenUnsatisfiable string) *Constraints
NewConstraintsWith instantiates a new Constraints 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 NewConstraintsWithDefault ¶
func NewConstraintsWithDefault() *Constraints
NewConstraintsWithDefault instantiates a new Constraints 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 (*Constraints) GetLabelSelector ¶
func (o *Constraints) GetLabelSelector() LabSelector
GetLabelSelector returns the LabelSelector field value
func (*Constraints) GetLabelSelectorOk ¶
func (o *Constraints) GetLabelSelectorOk() (*LabSelector, bool)
GetLabelSelectorOk returns a tuple with the LabelSelector field value and a boolean to check if the value has been set.
func (*Constraints) GetMatchLabelKeys ¶
func (o *Constraints) GetMatchLabelKeys() []string
GetMatchLabelKeys returns the MatchLabelKeys field value if set, zero value otherwise.
func (*Constraints) GetMatchLabelKeysOk ¶
func (o *Constraints) GetMatchLabelKeysOk() ([]string, bool)
GetMatchLabelKeysOk returns a tuple with the MatchLabelKeys field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Constraints) GetMaxSkew ¶
func (o *Constraints) GetMaxSkew() int32
GetMaxSkew returns the MaxSkew field value
func (*Constraints) GetMaxSkewOk ¶
func (o *Constraints) GetMaxSkewOk() (*int32, bool)
GetMaxSkewOk returns a tuple with the MaxSkew field value and a boolean to check if the value has been set.
func (*Constraints) GetMinDomains ¶
func (o *Constraints) GetMinDomains() int32
GetMinDomains returns the MinDomains field value if set, zero value otherwise.
func (*Constraints) GetMinDomainsOk ¶
func (o *Constraints) GetMinDomainsOk() (*int32, bool)
GetMinDomainsOk returns a tuple with the MinDomains field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Constraints) GetNodeAffinityPolicy ¶
func (o *Constraints) GetNodeAffinityPolicy() string
GetNodeAffinityPolicy returns the NodeAffinityPolicy field value if set, zero value otherwise.
func (*Constraints) GetNodeAffinityPolicyOk ¶
func (o *Constraints) GetNodeAffinityPolicyOk() (*string, bool)
GetNodeAffinityPolicyOk returns a tuple with the NodeAffinityPolicy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Constraints) GetNodeTaintsPolicy ¶
func (o *Constraints) GetNodeTaintsPolicy() string
GetNodeTaintsPolicy returns the NodeTaintsPolicy field value if set, zero value otherwise.
func (*Constraints) GetNodeTaintsPolicyOk ¶
func (o *Constraints) GetNodeTaintsPolicyOk() (*string, bool)
GetNodeTaintsPolicyOk returns a tuple with the NodeTaintsPolicy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Constraints) GetTopologyKey ¶
func (o *Constraints) GetTopologyKey() string
GetTopologyKey returns the TopologyKey field value
func (*Constraints) GetTopologyKeyOk ¶
func (o *Constraints) GetTopologyKeyOk() (*string, bool)
GetTopologyKeyOk returns a tuple with the TopologyKey field value and a boolean to check if the value has been set.
func (*Constraints) GetWhenUnsatisfiable ¶
func (o *Constraints) GetWhenUnsatisfiable() string
GetWhenUnsatisfiable returns the WhenUnsatisfiable field value
func (*Constraints) GetWhenUnsatisfiableOk ¶
func (o *Constraints) GetWhenUnsatisfiableOk() (*string, bool)
GetWhenUnsatisfiableOk returns a tuple with the WhenUnsatisfiable field value and a boolean to check if the value has been set.
func (*Constraints) HasMatchLabelKeys ¶
func (o *Constraints) HasMatchLabelKeys() bool
HasMatchLabelKeys returns a boolean if a field has been set.
func (*Constraints) HasMinDomains ¶
func (o *Constraints) HasMinDomains() bool
HasMinDomains returns a boolean if a field has been set.
func (*Constraints) HasNodeAffinityPolicy ¶
func (o *Constraints) HasNodeAffinityPolicy() bool
HasNodeAffinityPolicy returns a boolean if a field has been set.
func (*Constraints) HasNodeTaintsPolicy ¶
func (o *Constraints) HasNodeTaintsPolicy() bool
HasNodeTaintsPolicy returns a boolean if a field has been set.
func (Constraints) MarshalJSON ¶
func (o Constraints) MarshalJSON() ([]byte, error)
func (*Constraints) SetLabelSelector ¶
func (o *Constraints) SetLabelSelector(v LabSelector) *Constraints
SetLabelSelector sets field value
func (*Constraints) SetMatchLabelKeys ¶
func (o *Constraints) SetMatchLabelKeys(v []string) *Constraints
SetMatchLabelKeys gets a reference to the given []string and assigns it to the matchLabelKeys field. MatchLabelKeys: A list of pod label keys to select the pods over which spreading will be calculated
func (*Constraints) SetMaxSkew ¶
func (o *Constraints) SetMaxSkew(v int32) *Constraints
SetMaxSkew sets field value
func (*Constraints) SetMinDomains ¶
func (o *Constraints) SetMinDomains(v int32) *Constraints
SetMinDomains gets a reference to the given int32 and assigns it to the minDomains field. MinDomains: Indicate a minimum number of eligible domains
func (*Constraints) SetNodeAffinityPolicy ¶
func (o *Constraints) SetNodeAffinityPolicy(v string) *Constraints
SetNodeAffinityPolicy gets a reference to the given string and assigns it to the nodeAffinityPolicy field. NodeAffinityPolicy: Indicate how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew
func (*Constraints) SetNodeTaintsPolicy ¶
func (o *Constraints) SetNodeTaintsPolicy(v string) *Constraints
SetNodeTaintsPolicy gets a reference to the given string and assigns it to the nodeTaintsPolicy field. NodeTaintsPolicy: Indicate how we will treat node taints when calculating pod topology spread skew
func (*Constraints) SetTopologyKey ¶
func (o *Constraints) SetTopologyKey(v string) *Constraints
SetTopologyKey sets field value
func (*Constraints) SetWhenUnsatisfiable ¶
func (o *Constraints) SetWhenUnsatisfiable(v string) *Constraints
SetWhenUnsatisfiable sets field value
func (Constraints) ToMap ¶
func (o Constraints) ToMap() (map[string]interface{}, error)
func (*Constraints) Validate ¶
func (o *Constraints) Validate() error
Validate validates this Constraints 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 LabSelector ¶
type LabSelector struct { MatchExpressions []MatchExpressions `json:"matchExpressions,omitempty"` MatchLabels map[string]string `json:"matchLabels,omitempty"` }
LabSelector struct for LabSelector
func NewLabSelector ¶
func NewLabSelector() *LabSelector
NewLabSelector is short for NewLabSelectorWithDefault which instantiates a new LabSelector 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 NewLabSelectorEmpty ¶
func NewLabSelectorEmpty() *LabSelector
NewLabSelectorEmpty instantiates a new LabSelector object with no properties set. This constructor will not assign any default values to properties.
func NewLabSelectorList ¶
func NewLabSelectorList(ps ...*LabSelector) []LabSelector
NewLabSelectors converts a list LabSelector pointers to objects. This is helpful when the SetLabSelector requires a list of objects
func NewLabSelectorWith ¶
func NewLabSelectorWith() *LabSelector
NewLabSelectorWith instantiates a new LabSelector 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 NewLabSelectorWithDefault ¶
func NewLabSelectorWithDefault() *LabSelector
NewLabSelectorWithDefault instantiates a new LabSelector 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 (*LabSelector) GetMatchExpressions ¶
func (o *LabSelector) GetMatchExpressions() []MatchExpressions
GetMatchExpressions returns the MatchExpressions field value if set, zero value otherwise.
func (*LabSelector) GetMatchExpressionsOk ¶
func (o *LabSelector) 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 (*LabSelector) GetMatchLabels ¶
func (o *LabSelector) GetMatchLabels() map[string]string
GetMatchLabels returns the MatchLabels field value if set, zero value otherwise.
func (*LabSelector) GetMatchLabelsOk ¶
func (o *LabSelector) 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 (*LabSelector) HasMatchExpressions ¶
func (o *LabSelector) HasMatchExpressions() bool
HasMatchExpressions returns a boolean if a field has been set.
func (*LabSelector) HasMatchLabels ¶
func (o *LabSelector) HasMatchLabels() bool
HasMatchLabels returns a boolean if a field has been set.
func (LabSelector) MarshalJSON ¶
func (o LabSelector) MarshalJSON() ([]byte, error)
func (*LabSelector) SetMatchExpressions ¶
func (o *LabSelector) SetMatchExpressions(v []MatchExpressions) *LabSelector
SetMatchExpressions gets a reference to the given []MatchExpressions and assigns it to the matchExpressions field. MatchExpressions:
func (*LabSelector) SetMatchLabels ¶
func (o *LabSelector) SetMatchLabels(v map[string]string) *LabSelector
SetMatchLabels gets a reference to the given map[string]string and assigns it to the matchLabels field. MatchLabels:
func (LabSelector) ToMap ¶
func (o LabSelector) ToMap() (map[string]interface{}, error)
func (*LabSelector) Validate ¶
func (o *LabSelector) Validate() error
Validate validates this LabSelector 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 NullableConstraints ¶
type NullableConstraints struct {
// contains filtered or unexported fields
}
func NewNullableConstraints ¶
func NewNullableConstraints(val *Constraints) *NullableConstraints
func (*NullableConstraints) Get ¶
func (v *NullableConstraints) Get() *Constraints
func (*NullableConstraints) IsSet ¶
func (v *NullableConstraints) IsSet() bool
func (NullableConstraints) MarshalJSON ¶
func (v NullableConstraints) MarshalJSON() ([]byte, error)
func (*NullableConstraints) Set ¶
func (v *NullableConstraints) Set(val *Constraints)
func (*NullableConstraints) UnmarshalJSON ¶
func (v *NullableConstraints) UnmarshalJSON(src []byte) error
func (*NullableConstraints) Unset ¶
func (v *NullableConstraints) Unset()
type NullableLabSelector ¶
type NullableLabSelector struct {
// contains filtered or unexported fields
}
func NewNullableLabSelector ¶
func NewNullableLabSelector(val *LabSelector) *NullableLabSelector
func (*NullableLabSelector) Get ¶
func (v *NullableLabSelector) Get() *LabSelector
func (*NullableLabSelector) IsSet ¶
func (v *NullableLabSelector) IsSet() bool
func (NullableLabSelector) MarshalJSON ¶
func (v NullableLabSelector) MarshalJSON() ([]byte, error)
func (*NullableLabSelector) Set ¶
func (v *NullableLabSelector) Set(val *LabSelector)
func (*NullableLabSelector) UnmarshalJSON ¶
func (v *NullableLabSelector) UnmarshalJSON(src []byte) error
func (*NullableLabSelector) Unset ¶
func (v *NullableLabSelector) 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 NullableTopologyspreadconstraintsSpec ¶
type NullableTopologyspreadconstraintsSpec struct {
// contains filtered or unexported fields
}
func NewNullableTopologyspreadconstraintsSpec ¶
func NewNullableTopologyspreadconstraintsSpec(val *TopologyspreadconstraintsSpec) *NullableTopologyspreadconstraintsSpec
func (*NullableTopologyspreadconstraintsSpec) Get ¶
func (v *NullableTopologyspreadconstraintsSpec) Get() *TopologyspreadconstraintsSpec
func (*NullableTopologyspreadconstraintsSpec) IsSet ¶
func (v *NullableTopologyspreadconstraintsSpec) IsSet() bool
func (NullableTopologyspreadconstraintsSpec) MarshalJSON ¶
func (v NullableTopologyspreadconstraintsSpec) MarshalJSON() ([]byte, error)
func (*NullableTopologyspreadconstraintsSpec) Set ¶
func (v *NullableTopologyspreadconstraintsSpec) Set(val *TopologyspreadconstraintsSpec)
func (*NullableTopologyspreadconstraintsSpec) UnmarshalJSON ¶
func (v *NullableTopologyspreadconstraintsSpec) UnmarshalJSON(src []byte) error
func (*NullableTopologyspreadconstraintsSpec) Unset ¶
func (v *NullableTopologyspreadconstraintsSpec) Unset()
type TopologyspreadconstraintsSpec ¶
type TopologyspreadconstraintsSpec struct {
Constraints []Constraints `json:"constraints"`
}
TopologyspreadconstraintsSpec struct for TopologyspreadconstraintsSpec
func NewTopologyspreadconstraintsSpec ¶
func NewTopologyspreadconstraintsSpec() *TopologyspreadconstraintsSpec
NewTopologyspreadconstraintsSpec is short for NewTopologyspreadconstraintsSpecWithDefault which instantiates a new TopologyspreadconstraintsSpec 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 NewTopologyspreadconstraintsSpecEmpty ¶
func NewTopologyspreadconstraintsSpecEmpty() *TopologyspreadconstraintsSpec
NewTopologyspreadconstraintsSpecEmpty instantiates a new TopologyspreadconstraintsSpec object with no properties set. This constructor will not assign any default values to properties.
func NewTopologyspreadconstraintsSpecList ¶
func NewTopologyspreadconstraintsSpecList(ps ...*TopologyspreadconstraintsSpec) []TopologyspreadconstraintsSpec
NewTopologyspreadconstraintsSpecs converts a list TopologyspreadconstraintsSpec pointers to objects. This is helpful when the SetTopologyspreadconstraintsSpec requires a list of objects
func NewTopologyspreadconstraintsSpecWith ¶
func NewTopologyspreadconstraintsSpecWith(constraints []Constraints) *TopologyspreadconstraintsSpec
NewTopologyspreadconstraintsSpecWith instantiates a new TopologyspreadconstraintsSpec 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 NewTopologyspreadconstraintsSpecWithDefault ¶
func NewTopologyspreadconstraintsSpecWithDefault() *TopologyspreadconstraintsSpec
NewTopologyspreadconstraintsSpecWithDefault instantiates a new TopologyspreadconstraintsSpec 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 (TopologyspreadconstraintsSpec) MarshalJSON ¶
func (o TopologyspreadconstraintsSpec) MarshalJSON() ([]byte, error)
func (TopologyspreadconstraintsSpec) ToMap ¶
func (o TopologyspreadconstraintsSpec) ToMap() (map[string]interface{}, error)
type TopologyspreadconstraintsTrait ¶
type TopologyspreadconstraintsTrait struct { Base apis.TraitBase Properties TopologyspreadconstraintsSpec }
func Topologyspreadconstraints ¶
func Topologyspreadconstraints() *TopologyspreadconstraintsTrait
func (*TopologyspreadconstraintsTrait) Build ¶
func (t *TopologyspreadconstraintsTrait) Build() common.ApplicationTrait
func (*TopologyspreadconstraintsTrait) DefType ¶
func (t *TopologyspreadconstraintsTrait) DefType() string
func (*TopologyspreadconstraintsTrait) FromTrait ¶
func (t *TopologyspreadconstraintsTrait) FromTrait(from common.ApplicationTrait) (*TopologyspreadconstraintsTrait, error)
func (*TopologyspreadconstraintsTrait) GetConstraints ¶
func (o *TopologyspreadconstraintsTrait) GetConstraints() []Constraints
GetConstraints returns the Constraints field value
func (*TopologyspreadconstraintsTrait) GetConstraintsOk ¶
func (o *TopologyspreadconstraintsTrait) GetConstraintsOk() ([]Constraints, bool)
GetConstraintsOk returns a tuple with the Constraints field value and a boolean to check if the value has been set.
func (*TopologyspreadconstraintsTrait) SetConstraints ¶
func (o *TopologyspreadconstraintsTrait) SetConstraints(v []Constraints) *TopologyspreadconstraintsTrait
SetConstraints sets field value
func (*TopologyspreadconstraintsTrait) Validate ¶
func (o *TopologyspreadconstraintsTrait) Validate() error
Validate validates this TopologyspreadconstraintsSpec 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