apply_object

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 ApplyObjectType = "apply-object"

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 ApplyObjectSpec

type ApplyObjectSpec struct {
	// The cluster you want to apply the resource to, default is the current control plane cluster
	Cluster *string `json:"cluster"`
	// Specify Kubernetes native resource object to be applied
	Value map[string]interface{} `json:"value"`
}

ApplyObjectSpec struct for ApplyObjectSpec

func NewApplyObjectSpec

func NewApplyObjectSpec() *ApplyObjectSpec

NewApplyObjectSpec is short for NewApplyObjectSpecWithDefault which instantiates a new ApplyObjectSpec 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 NewApplyObjectSpecEmpty

func NewApplyObjectSpecEmpty() *ApplyObjectSpec

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

func NewApplyObjectSpecList

func NewApplyObjectSpecList(ps ...*ApplyObjectSpec) []ApplyObjectSpec

NewApplyObjectSpecs converts a list ApplyObjectSpec pointers to objects. This is helpful when the SetApplyObjectSpec requires a list of objects

func NewApplyObjectSpecWith

func NewApplyObjectSpecWith(cluster string, value map[string]interface{}) *ApplyObjectSpec

NewApplyObjectSpecWith instantiates a new ApplyObjectSpec 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 NewApplyObjectSpecWithDefault

func NewApplyObjectSpecWithDefault() *ApplyObjectSpec

NewApplyObjectSpecWithDefault instantiates a new ApplyObjectSpec 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 (ApplyObjectSpec) MarshalJSON

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

func (ApplyObjectSpec) ToMap

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

type ApplyObjectWorkflowStep

type ApplyObjectWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties ApplyObjectSpec
}

func ApplyObject

func ApplyObject(name string) *ApplyObjectWorkflowStep

func (*ApplyObjectWorkflowStep) Alias

func (*ApplyObjectWorkflowStep) Build

func (*ApplyObjectWorkflowStep) DefType

func (a *ApplyObjectWorkflowStep) DefType() string

func (*ApplyObjectWorkflowStep) DependsOn

func (a *ApplyObjectWorkflowStep) DependsOn(dependsOn []string) *ApplyObjectWorkflowStep

func (*ApplyObjectWorkflowStep) FromWorkflowStep

func (*ApplyObjectWorkflowStep) FromWorkflowSubStep

func (*ApplyObjectWorkflowStep) GetCluster

func (o *ApplyObjectWorkflowStep) GetCluster() string

GetCluster returns the Cluster field value

func (*ApplyObjectWorkflowStep) GetClusterOk

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

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

func (*ApplyObjectWorkflowStep) GetValue

func (o *ApplyObjectWorkflowStep) GetValue() map[string]interface{}

GetValue returns the Value field value

func (*ApplyObjectWorkflowStep) GetValueOk

func (o *ApplyObjectWorkflowStep) GetValueOk() (map[string]interface{}, bool)

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

func (*ApplyObjectWorkflowStep) If

func (*ApplyObjectWorkflowStep) Inputs

func (*ApplyObjectWorkflowStep) Outputs

func (*ApplyObjectWorkflowStep) SetCluster

SetCluster sets field value

func (*ApplyObjectWorkflowStep) SetValue

func (o *ApplyObjectWorkflowStep) SetValue(v map[string]interface{}) *ApplyObjectWorkflowStep

SetValue sets field value

func (*ApplyObjectWorkflowStep) Timeout

func (*ApplyObjectWorkflowStep) Validate

func (o *ApplyObjectWorkflowStep) Validate() error

Validate validates this ApplyObjectSpec 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 (*ApplyObjectWorkflowStep) WorkflowStepName

func (a *ApplyObjectWorkflowStep) WorkflowStepName() string

type NullableApplyObjectSpec

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

func NewNullableApplyObjectSpec

func NewNullableApplyObjectSpec(val *ApplyObjectSpec) *NullableApplyObjectSpec

func (*NullableApplyObjectSpec) Get

func (*NullableApplyObjectSpec) IsSet

func (v *NullableApplyObjectSpec) IsSet() bool

func (NullableApplyObjectSpec) MarshalJSON

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

func (*NullableApplyObjectSpec) Set

func (*NullableApplyObjectSpec) UnmarshalJSON

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

func (*NullableApplyObjectSpec) Unset

func (v *NullableApplyObjectSpec) Unset()

Jump to

Keyboard shortcuts

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