apply_deployment

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ApplyDeploymentType = "apply-deployment"

Variables

This section is empty.

Functions

func FromWorkflowStep

func FromWorkflowStep(from v1beta1.WorkflowStep) (apis.WorkflowStep, error)

func FromWorkflowSubStep

func FromWorkflowSubStep(from common.WorkflowSubStep) (apis.WorkflowStep, error)

Types

type ApplyDeploymentSpec

type ApplyDeploymentSpec struct {
	Cluster  *string  `json:"cluster"`
	Cmd      []string `json:"cmd,omitempty"`
	Image    *string  `json:"image"`
	Replicas *int32   `json:"replicas"`
}

ApplyDeploymentSpec struct for ApplyDeploymentSpec

func NewApplyDeploymentSpec

func NewApplyDeploymentSpec() *ApplyDeploymentSpec

NewApplyDeploymentSpec is short for NewApplyDeploymentSpecWithDefault which instantiates a new ApplyDeploymentSpec 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 NewApplyDeploymentSpecEmpty

func NewApplyDeploymentSpecEmpty() *ApplyDeploymentSpec

NewApplyDeploymentSpecEmpty instantiates a new ApplyDeploymentSpec object with no properties set. This constructor will not assign any default values to properties.

func NewApplyDeploymentSpecList

func NewApplyDeploymentSpecList(ps ...*ApplyDeploymentSpec) []ApplyDeploymentSpec

NewApplyDeploymentSpecs converts a list ApplyDeploymentSpec pointers to objects. This is helpful when the SetApplyDeploymentSpec requires a list of objects

func NewApplyDeploymentSpecWith

func NewApplyDeploymentSpecWith(cluster string, image string, replicas int32) *ApplyDeploymentSpec

NewApplyDeploymentSpecWith instantiates a new ApplyDeploymentSpec 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 NewApplyDeploymentSpecWithDefault

func NewApplyDeploymentSpecWithDefault() *ApplyDeploymentSpec

NewApplyDeploymentSpecWithDefault instantiates a new ApplyDeploymentSpec 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 (ApplyDeploymentSpec) MarshalJSON

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

func (ApplyDeploymentSpec) ToMap

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

type ApplyDeploymentWorkflowStep

type ApplyDeploymentWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties ApplyDeploymentSpec
}

func ApplyDeployment

func ApplyDeployment(name string) *ApplyDeploymentWorkflowStep

func (*ApplyDeploymentWorkflowStep) Alias

func (*ApplyDeploymentWorkflowStep) Build

func (*ApplyDeploymentWorkflowStep) DefType

func (a *ApplyDeploymentWorkflowStep) DefType() string

func (*ApplyDeploymentWorkflowStep) DependsOn

func (*ApplyDeploymentWorkflowStep) FromWorkflowStep

func (*ApplyDeploymentWorkflowStep) FromWorkflowSubStep

func (*ApplyDeploymentWorkflowStep) GetCluster

func (o *ApplyDeploymentWorkflowStep) GetCluster() string

GetCluster returns the Cluster field value

func (*ApplyDeploymentWorkflowStep) GetClusterOk

func (o *ApplyDeploymentWorkflowStep) GetClusterOk() (*string, bool)

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

func (*ApplyDeploymentWorkflowStep) GetCmd

func (o *ApplyDeploymentWorkflowStep) GetCmd() []string

GetCmd returns the Cmd field value if set, zero value otherwise.

func (*ApplyDeploymentWorkflowStep) GetCmdOk

func (o *ApplyDeploymentWorkflowStep) GetCmdOk() ([]string, bool)

GetCmdOk returns a tuple with the Cmd field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApplyDeploymentWorkflowStep) GetImage

func (o *ApplyDeploymentWorkflowStep) GetImage() string

GetImage returns the Image field value

func (*ApplyDeploymentWorkflowStep) GetImageOk

func (o *ApplyDeploymentWorkflowStep) GetImageOk() (*string, bool)

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

func (*ApplyDeploymentWorkflowStep) GetReplicas

func (o *ApplyDeploymentWorkflowStep) GetReplicas() int32

GetReplicas returns the Replicas field value

func (*ApplyDeploymentWorkflowStep) GetReplicasOk

func (o *ApplyDeploymentWorkflowStep) GetReplicasOk() (*int32, bool)

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

func (*ApplyDeploymentWorkflowStep) HasCmd

func (o *ApplyDeploymentWorkflowStep) HasCmd() bool

HasCmd returns a boolean if a field has been set.

func (*ApplyDeploymentWorkflowStep) If

func (*ApplyDeploymentWorkflowStep) Inputs

func (*ApplyDeploymentWorkflowStep) Outputs

func (*ApplyDeploymentWorkflowStep) SetCluster

SetCluster sets field value

func (*ApplyDeploymentWorkflowStep) SetCmd

SetCmd gets a reference to the given []string and assigns it to the cmd field. Cmd:

func (*ApplyDeploymentWorkflowStep) SetImage

SetImage sets field value

func (*ApplyDeploymentWorkflowStep) SetReplicas

SetReplicas sets field value

func (*ApplyDeploymentWorkflowStep) Timeout

func (*ApplyDeploymentWorkflowStep) Validate

func (o *ApplyDeploymentWorkflowStep) Validate() error

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

func (*ApplyDeploymentWorkflowStep) WorkflowStepName

func (a *ApplyDeploymentWorkflowStep) WorkflowStepName() string

type NullableApplyDeploymentSpec

type NullableApplyDeploymentSpec struct {
	// contains filtered or unexported fields
}

func NewNullableApplyDeploymentSpec

func NewNullableApplyDeploymentSpec(val *ApplyDeploymentSpec) *NullableApplyDeploymentSpec

func (*NullableApplyDeploymentSpec) Get

func (*NullableApplyDeploymentSpec) IsSet

func (v *NullableApplyDeploymentSpec) IsSet() bool

func (NullableApplyDeploymentSpec) MarshalJSON

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

func (*NullableApplyDeploymentSpec) Set

func (*NullableApplyDeploymentSpec) UnmarshalJSON

func (v *NullableApplyDeploymentSpec) UnmarshalJSON(src []byte) error

func (*NullableApplyDeploymentSpec) Unset

func (v *NullableApplyDeploymentSpec) Unset()

Jump to

Keyboard shortcuts

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