read_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 ReadObjectType = "read-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 NullableReadObjectSpec

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

func NewNullableReadObjectSpec

func NewNullableReadObjectSpec(val *ReadObjectSpec) *NullableReadObjectSpec

func (*NullableReadObjectSpec) Get

func (*NullableReadObjectSpec) IsSet

func (v *NullableReadObjectSpec) IsSet() bool

func (NullableReadObjectSpec) MarshalJSON

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

func (*NullableReadObjectSpec) Set

func (*NullableReadObjectSpec) UnmarshalJSON

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

func (*NullableReadObjectSpec) Unset

func (v *NullableReadObjectSpec) Unset()

type ReadObjectSpec

type ReadObjectSpec struct {
	// Specify the apiVersion of the object, defaults to 'core.oam.dev/v1beta1'
	ApiVersion *string `json:"apiVersion,omitempty"`
	// The cluster you want to apply the resource to, default is the current control plane cluster
	Cluster *string `json:"cluster"`
	// Specify the kind of the object, defaults to Application
	Kind *string `json:"kind,omitempty"`
	// Specify the name of the object
	Name *string `json:"name"`
	// The namespace of the resource you want to read
	Namespace *string `json:"namespace,omitempty"`
}

ReadObjectSpec struct for ReadObjectSpec

func NewReadObjectSpec

func NewReadObjectSpec() *ReadObjectSpec

NewReadObjectSpec is short for NewReadObjectSpecWithDefault which instantiates a new ReadObjectSpec 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 NewReadObjectSpecEmpty

func NewReadObjectSpecEmpty() *ReadObjectSpec

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

func NewReadObjectSpecList

func NewReadObjectSpecList(ps ...*ReadObjectSpec) []ReadObjectSpec

NewReadObjectSpecs converts a list ReadObjectSpec pointers to objects. This is helpful when the SetReadObjectSpec requires a list of objects

func NewReadObjectSpecWith

func NewReadObjectSpecWith(cluster string, name string) *ReadObjectSpec

NewReadObjectSpecWith instantiates a new ReadObjectSpec 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 NewReadObjectSpecWithDefault

func NewReadObjectSpecWithDefault() *ReadObjectSpec

NewReadObjectSpecWithDefault instantiates a new ReadObjectSpec 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 (ReadObjectSpec) MarshalJSON

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

func (ReadObjectSpec) ToMap

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

type ReadObjectWorkflowStep

type ReadObjectWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties ReadObjectSpec
}

func ReadObject

func ReadObject(name string) *ReadObjectWorkflowStep

func (*ReadObjectWorkflowStep) Alias

func (*ReadObjectWorkflowStep) Build

func (*ReadObjectWorkflowStep) DefType

func (r *ReadObjectWorkflowStep) DefType() string

func (*ReadObjectWorkflowStep) DependsOn

func (r *ReadObjectWorkflowStep) DependsOn(dependsOn []string) *ReadObjectWorkflowStep

func (*ReadObjectWorkflowStep) FromWorkflowStep

func (*ReadObjectWorkflowStep) FromWorkflowSubStep

func (*ReadObjectWorkflowStep) GetApiVersion

func (o *ReadObjectWorkflowStep) GetApiVersion() string

GetApiVersion returns the ApiVersion field value if set, zero value otherwise.

func (*ReadObjectWorkflowStep) GetApiVersionOk

func (o *ReadObjectWorkflowStep) GetApiVersionOk() (*string, bool)

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

func (*ReadObjectWorkflowStep) GetCluster

func (o *ReadObjectWorkflowStep) GetCluster() string

GetCluster returns the Cluster field value

func (*ReadObjectWorkflowStep) GetClusterOk

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

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

func (*ReadObjectWorkflowStep) GetKind

func (o *ReadObjectWorkflowStep) GetKind() string

GetKind returns the Kind field value if set, zero value otherwise.

func (*ReadObjectWorkflowStep) GetKindOk

func (o *ReadObjectWorkflowStep) GetKindOk() (*string, bool)

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

func (*ReadObjectWorkflowStep) GetName

func (o *ReadObjectWorkflowStep) GetName() string

GetName returns the Name field value

func (*ReadObjectWorkflowStep) GetNameOk

func (o *ReadObjectWorkflowStep) GetNameOk() (*string, bool)

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

func (*ReadObjectWorkflowStep) GetNamespace

func (o *ReadObjectWorkflowStep) GetNamespace() string

GetNamespace returns the Namespace field value if set, zero value otherwise.

func (*ReadObjectWorkflowStep) GetNamespaceOk

func (o *ReadObjectWorkflowStep) GetNamespaceOk() (*string, bool)

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

func (*ReadObjectWorkflowStep) HasApiVersion

func (o *ReadObjectWorkflowStep) HasApiVersion() bool

HasApiVersion returns a boolean if a field has been set.

func (*ReadObjectWorkflowStep) HasKind

func (o *ReadObjectWorkflowStep) HasKind() bool

HasKind returns a boolean if a field has been set.

func (*ReadObjectWorkflowStep) HasNamespace

func (o *ReadObjectWorkflowStep) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*ReadObjectWorkflowStep) If

func (*ReadObjectWorkflowStep) Inputs

func (*ReadObjectWorkflowStep) Outputs

func (*ReadObjectWorkflowStep) SetApiVersion

SetApiVersion gets a reference to the given string and assigns it to the apiVersion field. ApiVersion: Specify the apiVersion of the object, defaults to 'core.oam.dev/v1beta1'

func (*ReadObjectWorkflowStep) SetCluster

SetCluster sets field value

func (*ReadObjectWorkflowStep) SetKind

SetKind gets a reference to the given string and assigns it to the kind field. Kind: Specify the kind of the object, defaults to Application

func (*ReadObjectWorkflowStep) SetName

SetName sets field value

func (*ReadObjectWorkflowStep) SetNamespace

SetNamespace gets a reference to the given string and assigns it to the namespace field. Namespace: The namespace of the resource you want to read

func (*ReadObjectWorkflowStep) Timeout

func (*ReadObjectWorkflowStep) Validate

func (o *ReadObjectWorkflowStep) Validate() error

Validate validates this ReadObjectSpec 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 (*ReadObjectWorkflowStep) WorkflowStepName

func (r *ReadObjectWorkflowStep) WorkflowStepName() string

Jump to

Keyboard shortcuts

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