Documentation
¶
Index ¶
- Constants
- func FromTrait(from common.ApplicationTrait) (apis.Trait, error)
- type K8sUpdateStrategySpec
- func NewK8sUpdateStrategySpec() *K8sUpdateStrategySpec
- func NewK8sUpdateStrategySpecEmpty() *K8sUpdateStrategySpec
- func NewK8sUpdateStrategySpecList(ps ...*K8sUpdateStrategySpec) []K8sUpdateStrategySpec
- func NewK8sUpdateStrategySpecWith(strategy Strategy, targetAPIVersion string, targetKind string) *K8sUpdateStrategySpec
- func NewK8sUpdateStrategySpecWithDefault() *K8sUpdateStrategySpec
- type K8sUpdateStrategyTrait
- func (k *K8sUpdateStrategyTrait) Build() common.ApplicationTrait
- func (k *K8sUpdateStrategyTrait) DefType() string
- func (k *K8sUpdateStrategyTrait) FromTrait(from common.ApplicationTrait) (*K8sUpdateStrategyTrait, error)
- func (o *K8sUpdateStrategyTrait) GetStrategy() Strategy
- func (o *K8sUpdateStrategyTrait) GetStrategyOk() (*Strategy, bool)
- func (o *K8sUpdateStrategyTrait) GetTargetAPIVersion() string
- func (o *K8sUpdateStrategyTrait) GetTargetAPIVersionOk() (*string, bool)
- func (o *K8sUpdateStrategyTrait) GetTargetKind() string
- func (o *K8sUpdateStrategyTrait) GetTargetKindOk() (*string, bool)
- func (o *K8sUpdateStrategyTrait) SetStrategy(v Strategy) *K8sUpdateStrategyTrait
- func (o *K8sUpdateStrategyTrait) SetTargetAPIVersion(v string) *K8sUpdateStrategyTrait
- func (o *K8sUpdateStrategyTrait) SetTargetKind(v string) *K8sUpdateStrategyTrait
- func (o *K8sUpdateStrategyTrait) Validate() error
- type NullableK8sUpdateStrategySpec
- func (v *NullableK8sUpdateStrategySpec) Get() *K8sUpdateStrategySpec
- func (v *NullableK8sUpdateStrategySpec) IsSet() bool
- func (v NullableK8sUpdateStrategySpec) MarshalJSON() ([]byte, error)
- func (v *NullableK8sUpdateStrategySpec) Set(val *K8sUpdateStrategySpec)
- func (v *NullableK8sUpdateStrategySpec) UnmarshalJSON(src []byte) error
- func (v *NullableK8sUpdateStrategySpec) Unset()
- type NullableRollingStrategy
- func (v *NullableRollingStrategy) Get() *RollingStrategy
- func (v *NullableRollingStrategy) IsSet() bool
- func (v NullableRollingStrategy) MarshalJSON() ([]byte, error)
- func (v *NullableRollingStrategy) Set(val *RollingStrategy)
- func (v *NullableRollingStrategy) UnmarshalJSON(src []byte) error
- func (v *NullableRollingStrategy) Unset()
- type NullableStrategy
- type RollingStrategy
- func NewRollingStrategy() *RollingStrategy
- func NewRollingStrategyEmpty() *RollingStrategy
- func NewRollingStrategyList(ps ...*RollingStrategy) []RollingStrategy
- func NewRollingStrategyWith(maxSurge string, maxUnavailable string, partition int32) *RollingStrategy
- func NewRollingStrategyWithDefault() *RollingStrategy
- func (o *RollingStrategy) GetMaxSurge() string
- func (o *RollingStrategy) GetMaxSurgeOk() (*string, bool)
- func (o *RollingStrategy) GetMaxUnavailable() string
- func (o *RollingStrategy) GetMaxUnavailableOk() (*string, bool)
- func (o *RollingStrategy) GetPartition() int32
- func (o *RollingStrategy) GetPartitionOk() (*int32, bool)
- func (o RollingStrategy) MarshalJSON() ([]byte, error)
- func (o *RollingStrategy) SetMaxSurge(v string) *RollingStrategy
- func (o *RollingStrategy) SetMaxUnavailable(v string) *RollingStrategy
- func (o *RollingStrategy) SetPartition(v int32) *RollingStrategy
- func (o RollingStrategy) ToMap() (map[string]interface{}, error)
- func (o *RollingStrategy) Validate() error
- type Strategy
- func (o *Strategy) GetRollingStrategy() RollingStrategy
- func (o *Strategy) GetRollingStrategyOk() (*RollingStrategy, bool)
- func (o *Strategy) GetType() string
- func (o *Strategy) GetTypeOk() (*string, bool)
- func (o *Strategy) HasRollingStrategy() bool
- func (o Strategy) MarshalJSON() ([]byte, error)
- func (o *Strategy) SetRollingStrategy(v RollingStrategy) *Strategy
- func (o *Strategy) SetType(v string) *Strategy
- func (o Strategy) ToMap() (map[string]interface{}, error)
- func (o *Strategy) Validate() error
Constants ¶
const K8sUpdateStrategyType = "k8s-update-strategy"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type K8sUpdateStrategySpec ¶
type K8sUpdateStrategySpec struct { Strategy *Strategy `json:"strategy"` // Specify the apiVersion of target TargetAPIVersion *string `json:"targetAPIVersion"` // Specify the kind of target TargetKind *string `json:"targetKind"` }
K8sUpdateStrategySpec struct for K8sUpdateStrategySpec
func NewK8sUpdateStrategySpec ¶
func NewK8sUpdateStrategySpec() *K8sUpdateStrategySpec
NewK8sUpdateStrategySpec is short for NewK8sUpdateStrategySpecWithDefault which instantiates a new K8sUpdateStrategySpec 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 NewK8sUpdateStrategySpecEmpty ¶
func NewK8sUpdateStrategySpecEmpty() *K8sUpdateStrategySpec
NewK8sUpdateStrategySpecEmpty instantiates a new K8sUpdateStrategySpec object with no properties set. This constructor will not assign any default values to properties.
func NewK8sUpdateStrategySpecList ¶
func NewK8sUpdateStrategySpecList(ps ...*K8sUpdateStrategySpec) []K8sUpdateStrategySpec
NewK8sUpdateStrategySpecs converts a list K8sUpdateStrategySpec pointers to objects. This is helpful when the SetK8sUpdateStrategySpec requires a list of objects
func NewK8sUpdateStrategySpecWith ¶
func NewK8sUpdateStrategySpecWith(strategy Strategy, targetAPIVersion string, targetKind string) *K8sUpdateStrategySpec
NewK8sUpdateStrategySpecWith instantiates a new K8sUpdateStrategySpec 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 NewK8sUpdateStrategySpecWithDefault ¶
func NewK8sUpdateStrategySpecWithDefault() *K8sUpdateStrategySpec
NewK8sUpdateStrategySpecWithDefault instantiates a new K8sUpdateStrategySpec 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 (K8sUpdateStrategySpec) MarshalJSON ¶
func (o K8sUpdateStrategySpec) MarshalJSON() ([]byte, error)
func (K8sUpdateStrategySpec) ToMap ¶
func (o K8sUpdateStrategySpec) ToMap() (map[string]interface{}, error)
type K8sUpdateStrategyTrait ¶
type K8sUpdateStrategyTrait struct { Base apis.TraitBase Properties K8sUpdateStrategySpec }
func K8sUpdateStrategy ¶
func K8sUpdateStrategy() *K8sUpdateStrategyTrait
func (*K8sUpdateStrategyTrait) Build ¶
func (k *K8sUpdateStrategyTrait) Build() common.ApplicationTrait
func (*K8sUpdateStrategyTrait) DefType ¶
func (k *K8sUpdateStrategyTrait) DefType() string
func (*K8sUpdateStrategyTrait) FromTrait ¶
func (k *K8sUpdateStrategyTrait) FromTrait(from common.ApplicationTrait) (*K8sUpdateStrategyTrait, error)
func (*K8sUpdateStrategyTrait) GetStrategy ¶
func (o *K8sUpdateStrategyTrait) GetStrategy() Strategy
GetStrategy returns the Strategy field value
func (*K8sUpdateStrategyTrait) GetStrategyOk ¶
func (o *K8sUpdateStrategyTrait) GetStrategyOk() (*Strategy, bool)
GetStrategyOk returns a tuple with the Strategy field value and a boolean to check if the value has been set.
func (*K8sUpdateStrategyTrait) GetTargetAPIVersion ¶
func (o *K8sUpdateStrategyTrait) GetTargetAPIVersion() string
GetTargetAPIVersion returns the TargetAPIVersion field value
func (*K8sUpdateStrategyTrait) GetTargetAPIVersionOk ¶
func (o *K8sUpdateStrategyTrait) GetTargetAPIVersionOk() (*string, bool)
GetTargetAPIVersionOk returns a tuple with the TargetAPIVersion field value and a boolean to check if the value has been set.
func (*K8sUpdateStrategyTrait) GetTargetKind ¶
func (o *K8sUpdateStrategyTrait) GetTargetKind() string
GetTargetKind returns the TargetKind field value
func (*K8sUpdateStrategyTrait) GetTargetKindOk ¶
func (o *K8sUpdateStrategyTrait) GetTargetKindOk() (*string, bool)
GetTargetKindOk returns a tuple with the TargetKind field value and a boolean to check if the value has been set.
func (*K8sUpdateStrategyTrait) SetStrategy ¶
func (o *K8sUpdateStrategyTrait) SetStrategy(v Strategy) *K8sUpdateStrategyTrait
SetStrategy sets field value
func (*K8sUpdateStrategyTrait) SetTargetAPIVersion ¶
func (o *K8sUpdateStrategyTrait) SetTargetAPIVersion(v string) *K8sUpdateStrategyTrait
SetTargetAPIVersion sets field value
func (*K8sUpdateStrategyTrait) SetTargetKind ¶
func (o *K8sUpdateStrategyTrait) SetTargetKind(v string) *K8sUpdateStrategyTrait
SetTargetKind sets field value
func (*K8sUpdateStrategyTrait) Validate ¶
func (o *K8sUpdateStrategyTrait) Validate() error
Validate validates this K8sUpdateStrategySpec 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 NullableK8sUpdateStrategySpec ¶
type NullableK8sUpdateStrategySpec struct {
// contains filtered or unexported fields
}
func NewNullableK8sUpdateStrategySpec ¶
func NewNullableK8sUpdateStrategySpec(val *K8sUpdateStrategySpec) *NullableK8sUpdateStrategySpec
func (*NullableK8sUpdateStrategySpec) Get ¶
func (v *NullableK8sUpdateStrategySpec) Get() *K8sUpdateStrategySpec
func (*NullableK8sUpdateStrategySpec) IsSet ¶
func (v *NullableK8sUpdateStrategySpec) IsSet() bool
func (NullableK8sUpdateStrategySpec) MarshalJSON ¶
func (v NullableK8sUpdateStrategySpec) MarshalJSON() ([]byte, error)
func (*NullableK8sUpdateStrategySpec) Set ¶
func (v *NullableK8sUpdateStrategySpec) Set(val *K8sUpdateStrategySpec)
func (*NullableK8sUpdateStrategySpec) UnmarshalJSON ¶
func (v *NullableK8sUpdateStrategySpec) UnmarshalJSON(src []byte) error
func (*NullableK8sUpdateStrategySpec) Unset ¶
func (v *NullableK8sUpdateStrategySpec) Unset()
type NullableRollingStrategy ¶
type NullableRollingStrategy struct {
// contains filtered or unexported fields
}
func NewNullableRollingStrategy ¶
func NewNullableRollingStrategy(val *RollingStrategy) *NullableRollingStrategy
func (*NullableRollingStrategy) Get ¶
func (v *NullableRollingStrategy) Get() *RollingStrategy
func (*NullableRollingStrategy) IsSet ¶
func (v *NullableRollingStrategy) IsSet() bool
func (NullableRollingStrategy) MarshalJSON ¶
func (v NullableRollingStrategy) MarshalJSON() ([]byte, error)
func (*NullableRollingStrategy) Set ¶
func (v *NullableRollingStrategy) Set(val *RollingStrategy)
func (*NullableRollingStrategy) UnmarshalJSON ¶
func (v *NullableRollingStrategy) UnmarshalJSON(src []byte) error
func (*NullableRollingStrategy) Unset ¶
func (v *NullableRollingStrategy) Unset()
type NullableStrategy ¶
type NullableStrategy struct {
// contains filtered or unexported fields
}
func NewNullableStrategy ¶
func NewNullableStrategy(val *Strategy) *NullableStrategy
func (*NullableStrategy) Get ¶
func (v *NullableStrategy) Get() *Strategy
func (*NullableStrategy) IsSet ¶
func (v *NullableStrategy) IsSet() bool
func (NullableStrategy) MarshalJSON ¶
func (v NullableStrategy) MarshalJSON() ([]byte, error)
func (*NullableStrategy) Set ¶
func (v *NullableStrategy) Set(val *Strategy)
func (*NullableStrategy) UnmarshalJSON ¶
func (v *NullableStrategy) UnmarshalJSON(src []byte) error
func (*NullableStrategy) Unset ¶
func (v *NullableStrategy) Unset()
type RollingStrategy ¶
type RollingStrategy struct { MaxSurge *string `json:"maxSurge"` Partition *int32 `json:"partition"` }
RollingStrategy Specify the parameters of rollong update strategy
func NewRollingStrategy ¶
func NewRollingStrategy() *RollingStrategy
NewRollingStrategy is short for NewRollingStrategyWithDefault which instantiates a new RollingStrategy 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 NewRollingStrategyEmpty ¶
func NewRollingStrategyEmpty() *RollingStrategy
NewRollingStrategyEmpty instantiates a new RollingStrategy object with no properties set. This constructor will not assign any default values to properties.
func NewRollingStrategyList ¶
func NewRollingStrategyList(ps ...*RollingStrategy) []RollingStrategy
NewRollingStrategys converts a list RollingStrategy pointers to objects. This is helpful when the SetRollingStrategy requires a list of objects
func NewRollingStrategyWith ¶
func NewRollingStrategyWith(maxSurge string, maxUnavailable string, partition int32) *RollingStrategy
NewRollingStrategyWith instantiates a new RollingStrategy 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 NewRollingStrategyWithDefault ¶
func NewRollingStrategyWithDefault() *RollingStrategy
NewRollingStrategyWithDefault instantiates a new RollingStrategy 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 (*RollingStrategy) GetMaxSurge ¶
func (o *RollingStrategy) GetMaxSurge() string
GetMaxSurge returns the MaxSurge field value
func (*RollingStrategy) GetMaxSurgeOk ¶
func (o *RollingStrategy) GetMaxSurgeOk() (*string, bool)
GetMaxSurgeOk returns a tuple with the MaxSurge field value and a boolean to check if the value has been set.
func (*RollingStrategy) GetMaxUnavailable ¶
func (o *RollingStrategy) GetMaxUnavailable() string
GetMaxUnavailable returns the MaxUnavailable field value
func (*RollingStrategy) GetMaxUnavailableOk ¶
func (o *RollingStrategy) GetMaxUnavailableOk() (*string, bool)
GetMaxUnavailableOk returns a tuple with the MaxUnavailable field value and a boolean to check if the value has been set.
func (*RollingStrategy) GetPartition ¶
func (o *RollingStrategy) GetPartition() int32
GetPartition returns the Partition field value
func (*RollingStrategy) GetPartitionOk ¶
func (o *RollingStrategy) GetPartitionOk() (*int32, bool)
GetPartitionOk returns a tuple with the Partition field value and a boolean to check if the value has been set.
func (RollingStrategy) MarshalJSON ¶
func (o RollingStrategy) MarshalJSON() ([]byte, error)
func (*RollingStrategy) SetMaxSurge ¶
func (o *RollingStrategy) SetMaxSurge(v string) *RollingStrategy
SetMaxSurge sets field value
func (*RollingStrategy) SetMaxUnavailable ¶
func (o *RollingStrategy) SetMaxUnavailable(v string) *RollingStrategy
SetMaxUnavailable sets field value
func (*RollingStrategy) SetPartition ¶
func (o *RollingStrategy) SetPartition(v int32) *RollingStrategy
SetPartition sets field value
func (RollingStrategy) ToMap ¶
func (o RollingStrategy) ToMap() (map[string]interface{}, error)
func (*RollingStrategy) Validate ¶
func (o *RollingStrategy) Validate() error
Validate validates this RollingStrategy 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 Strategy ¶
type Strategy struct { RollingStrategy *RollingStrategy `json:"rollingStrategy,omitempty"` // Specify the strategy type Type *string `json:"type"` }
Strategy Specify the strategy of update
func NewStrategy ¶
func NewStrategy() *Strategy
NewStrategy is short for NewStrategyWithDefault which instantiates a new Strategy 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 NewStrategyEmpty ¶
func NewStrategyEmpty() *Strategy
NewStrategyEmpty instantiates a new Strategy object with no properties set. This constructor will not assign any default values to properties.
func NewStrategyList ¶
NewStrategys converts a list Strategy pointers to objects. This is helpful when the SetStrategy requires a list of objects
func NewStrategyWith ¶
NewStrategyWith instantiates a new Strategy 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 NewStrategyWithDefault ¶
func NewStrategyWithDefault() *Strategy
NewStrategyWithDefault instantiates a new Strategy 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 (*Strategy) GetRollingStrategy ¶
func (o *Strategy) GetRollingStrategy() RollingStrategy
GetRollingStrategy returns the RollingStrategy field value if set, zero value otherwise.
func (*Strategy) GetRollingStrategyOk ¶
func (o *Strategy) GetRollingStrategyOk() (*RollingStrategy, bool)
GetRollingStrategyOk returns a tuple with the RollingStrategy field value if set, nil otherwise and a boolean to check if the value has been set.
func (*Strategy) GetTypeOk ¶
GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.
func (*Strategy) HasRollingStrategy ¶
HasRollingStrategy returns a boolean if a field has been set.
func (Strategy) MarshalJSON ¶
func (*Strategy) SetRollingStrategy ¶
func (o *Strategy) SetRollingStrategy(v RollingStrategy) *Strategy
SetRollingStrategy gets a reference to the given RollingStrategy and assigns it to the rollingStrategy field. RollingStrategy: