k8s_update_strategy

package
v0.0.0-...-3d8ba93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const K8sUpdateStrategyType = "k8s-update-strategy"

Variables

This section is empty.

Functions

func FromTrait

func FromTrait(from common.ApplicationTrait) (apis.Trait, error)

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 (*K8sUpdateStrategyTrait) DefType

func (k *K8sUpdateStrategyTrait) DefType() string

func (*K8sUpdateStrategyTrait) FromTrait

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

SetStrategy sets field value

func (*K8sUpdateStrategyTrait) SetTargetAPIVersion

func (o *K8sUpdateStrategyTrait) SetTargetAPIVersion(v string) *K8sUpdateStrategyTrait

SetTargetAPIVersion sets field value

func (*K8sUpdateStrategyTrait) SetTargetKind

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 (*NullableK8sUpdateStrategySpec) Get

func (*NullableK8sUpdateStrategySpec) IsSet

func (NullableK8sUpdateStrategySpec) MarshalJSON

func (v NullableK8sUpdateStrategySpec) MarshalJSON() ([]byte, error)

func (*NullableK8sUpdateStrategySpec) Set

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 (*NullableRollingStrategy) IsSet

func (v *NullableRollingStrategy) IsSet() bool

func (NullableRollingStrategy) MarshalJSON

func (v NullableRollingStrategy) MarshalJSON() ([]byte, error)

func (*NullableRollingStrategy) Set

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"`
	MaxUnavailable *string `json:"maxUnavailable"`
	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

func NewStrategyList(ps ...*Strategy) []Strategy

NewStrategys converts a list Strategy pointers to objects. This is helpful when the SetStrategy requires a list of objects

func NewStrategyWith

func NewStrategyWith(type_ string) *Strategy

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) GetType

func (o *Strategy) GetType() string

GetType returns the Type field value

func (*Strategy) GetTypeOk

func (o *Strategy) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Strategy) HasRollingStrategy

func (o *Strategy) HasRollingStrategy() bool

HasRollingStrategy returns a boolean if a field has been set.

func (Strategy) MarshalJSON

func (o Strategy) MarshalJSON() ([]byte, error)

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:

func (*Strategy) SetType

func (o *Strategy) SetType(v string) *Strategy

SetType sets field value

func (Strategy) ToMap

func (o Strategy) ToMap() (map[string]interface{}, error)

func (*Strategy) Validate

func (o *Strategy) Validate() error

Validate validates this Strategy 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL