Documentation ¶
Index ¶
- Constants
- func FromWorkflowStep(from v1beta1.WorkflowStep) (apis.WorkflowStep, error)
- func FromWorkflowSubStep(from common.WorkflowSubStep) (apis.WorkflowStep, error)
- type DeploySpec
- type DeployWorkflowStep
- func (d *DeployWorkflowStep) Alias(alias string) *DeployWorkflowStep
- func (d *DeployWorkflowStep) Build() v1beta1.WorkflowStep
- func (d *DeployWorkflowStep) DefType() string
- func (d *DeployWorkflowStep) DependsOn(dependsOn []string) *DeployWorkflowStep
- func (d *DeployWorkflowStep) FromWorkflowStep(from v1beta1.WorkflowStep) (*DeployWorkflowStep, error)
- func (d *DeployWorkflowStep) FromWorkflowSubStep(from common.WorkflowSubStep) (*DeployWorkflowStep, error)
- func (o *DeployWorkflowStep) GetAuto() bool
- func (o *DeployWorkflowStep) GetAutoOk() (*bool, bool)
- func (o *DeployWorkflowStep) GetIgnoreTerraformComponent() bool
- func (o *DeployWorkflowStep) GetIgnoreTerraformComponentOk() (*bool, bool)
- func (o *DeployWorkflowStep) GetParallelism() int32
- func (o *DeployWorkflowStep) GetParallelismOk() (*int32, bool)
- func (o *DeployWorkflowStep) GetPolicies() []string
- func (o *DeployWorkflowStep) GetPoliciesOk() ([]string, bool)
- func (d *DeployWorkflowStep) If(_if string) *DeployWorkflowStep
- func (d *DeployWorkflowStep) Inputs(input common.StepInputs) *DeployWorkflowStep
- func (d *DeployWorkflowStep) Outputs(output common.StepOutputs) *DeployWorkflowStep
- func (o *DeployWorkflowStep) SetAuto(v bool) *DeployWorkflowStep
- func (o *DeployWorkflowStep) SetIgnoreTerraformComponent(v bool) *DeployWorkflowStep
- func (o *DeployWorkflowStep) SetParallelism(v int32) *DeployWorkflowStep
- func (o *DeployWorkflowStep) SetPolicies(v []string) *DeployWorkflowStep
- func (d *DeployWorkflowStep) Timeout(timeout string) *DeployWorkflowStep
- func (o *DeployWorkflowStep) Validate() error
- func (d *DeployWorkflowStep) WorkflowStepName() string
- type NullableDeploySpec
Constants ¶
const DeployType = "deploy"
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 DeploySpec ¶
type DeploySpec struct { // If set to false, the workflow will suspend automatically before this step, default to be true. Auto *bool `json:"auto"` // If set false, this step will apply the components with the terraform workload. IgnoreTerraformComponent *bool `json:"ignoreTerraformComponent"` // Maximum number of concurrent delivered components. Parallelism *int32 `json:"parallelism"` // Declare the policies that used for this deployment. If not specified, the components will be deployed to the hub cluster. Policies []string `json:"policies"` }
DeploySpec struct for DeploySpec
func NewDeploySpec ¶
func NewDeploySpec() *DeploySpec
NewDeploySpec is short for NewDeploySpecWithDefault which instantiates a new DeploySpec 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 NewDeploySpecEmpty ¶
func NewDeploySpecEmpty() *DeploySpec
NewDeploySpecEmpty instantiates a new DeploySpec object with no properties set. This constructor will not assign any default values to properties.
func NewDeploySpecList ¶
func NewDeploySpecList(ps ...*DeploySpec) []DeploySpec
NewDeploySpecs converts a list DeploySpec pointers to objects. This is helpful when the SetDeploySpec requires a list of objects
func NewDeploySpecWith ¶
func NewDeploySpecWith(auto bool, ignoreTerraformComponent bool, parallelism int32, policies []string) *DeploySpec
NewDeploySpecWith instantiates a new DeploySpec 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 NewDeploySpecWithDefault ¶
func NewDeploySpecWithDefault() *DeploySpec
NewDeploySpecWithDefault instantiates a new DeploySpec 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 (DeploySpec) MarshalJSON ¶
func (o DeploySpec) MarshalJSON() ([]byte, error)
func (DeploySpec) ToMap ¶
func (o DeploySpec) ToMap() (map[string]interface{}, error)
type DeployWorkflowStep ¶
type DeployWorkflowStep struct { Base apis.WorkflowStepBase Properties DeploySpec }
func Deploy ¶
func Deploy(name string) *DeployWorkflowStep
func (*DeployWorkflowStep) Alias ¶
func (d *DeployWorkflowStep) Alias(alias string) *DeployWorkflowStep
func (*DeployWorkflowStep) Build ¶
func (d *DeployWorkflowStep) Build() v1beta1.WorkflowStep
func (*DeployWorkflowStep) DefType ¶
func (d *DeployWorkflowStep) DefType() string
func (*DeployWorkflowStep) DependsOn ¶
func (d *DeployWorkflowStep) DependsOn(dependsOn []string) *DeployWorkflowStep
func (*DeployWorkflowStep) FromWorkflowStep ¶
func (d *DeployWorkflowStep) FromWorkflowStep(from v1beta1.WorkflowStep) (*DeployWorkflowStep, error)
func (*DeployWorkflowStep) FromWorkflowSubStep ¶
func (d *DeployWorkflowStep) FromWorkflowSubStep(from common.WorkflowSubStep) (*DeployWorkflowStep, error)
func (*DeployWorkflowStep) GetAuto ¶
func (o *DeployWorkflowStep) GetAuto() bool
GetAuto returns the Auto field value
func (*DeployWorkflowStep) GetAutoOk ¶
func (o *DeployWorkflowStep) GetAutoOk() (*bool, bool)
GetAutoOk returns a tuple with the Auto field value and a boolean to check if the value has been set.
func (*DeployWorkflowStep) GetIgnoreTerraformComponent ¶
func (o *DeployWorkflowStep) GetIgnoreTerraformComponent() bool
GetIgnoreTerraformComponent returns the IgnoreTerraformComponent field value
func (*DeployWorkflowStep) GetIgnoreTerraformComponentOk ¶
func (o *DeployWorkflowStep) GetIgnoreTerraformComponentOk() (*bool, bool)
GetIgnoreTerraformComponentOk returns a tuple with the IgnoreTerraformComponent field value and a boolean to check if the value has been set.
func (*DeployWorkflowStep) GetParallelism ¶
func (o *DeployWorkflowStep) GetParallelism() int32
GetParallelism returns the Parallelism field value
func (*DeployWorkflowStep) GetParallelismOk ¶
func (o *DeployWorkflowStep) GetParallelismOk() (*int32, bool)
GetParallelismOk returns a tuple with the Parallelism field value and a boolean to check if the value has been set.
func (*DeployWorkflowStep) GetPolicies ¶
func (o *DeployWorkflowStep) GetPolicies() []string
GetPolicies returns the Policies field value
func (*DeployWorkflowStep) GetPoliciesOk ¶
func (o *DeployWorkflowStep) GetPoliciesOk() ([]string, bool)
GetPoliciesOk returns a tuple with the Policies field value and a boolean to check if the value has been set.
func (*DeployWorkflowStep) If ¶
func (d *DeployWorkflowStep) If(_if string) *DeployWorkflowStep
func (*DeployWorkflowStep) Inputs ¶
func (d *DeployWorkflowStep) Inputs(input common.StepInputs) *DeployWorkflowStep
func (*DeployWorkflowStep) Outputs ¶
func (d *DeployWorkflowStep) Outputs(output common.StepOutputs) *DeployWorkflowStep
func (*DeployWorkflowStep) SetAuto ¶
func (o *DeployWorkflowStep) SetAuto(v bool) *DeployWorkflowStep
SetAuto sets field value
func (*DeployWorkflowStep) SetIgnoreTerraformComponent ¶
func (o *DeployWorkflowStep) SetIgnoreTerraformComponent(v bool) *DeployWorkflowStep
SetIgnoreTerraformComponent sets field value
func (*DeployWorkflowStep) SetParallelism ¶
func (o *DeployWorkflowStep) SetParallelism(v int32) *DeployWorkflowStep
SetParallelism sets field value
func (*DeployWorkflowStep) SetPolicies ¶
func (o *DeployWorkflowStep) SetPolicies(v []string) *DeployWorkflowStep
SetPolicies sets field value
func (*DeployWorkflowStep) Timeout ¶
func (d *DeployWorkflowStep) Timeout(timeout string) *DeployWorkflowStep
func (*DeployWorkflowStep) Validate ¶
func (o *DeployWorkflowStep) Validate() error
Validate validates this DeploySpec 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 (*DeployWorkflowStep) WorkflowStepName ¶
func (d *DeployWorkflowStep) WorkflowStepName() string
type NullableDeploySpec ¶
type NullableDeploySpec struct {
// contains filtered or unexported fields
}
func NewNullableDeploySpec ¶
func NewNullableDeploySpec(val *DeploySpec) *NullableDeploySpec
func (*NullableDeploySpec) Get ¶
func (v *NullableDeploySpec) Get() *DeploySpec
func (*NullableDeploySpec) IsSet ¶
func (v *NullableDeploySpec) IsSet() bool
func (NullableDeploySpec) MarshalJSON ¶
func (v NullableDeploySpec) MarshalJSON() ([]byte, error)
func (*NullableDeploySpec) Set ¶
func (v *NullableDeploySpec) Set(val *DeploySpec)
func (*NullableDeploySpec) UnmarshalJSON ¶
func (v *NullableDeploySpec) UnmarshalJSON(src []byte) error
func (*NullableDeploySpec) Unset ¶
func (v *NullableDeploySpec) Unset()