create_config

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 CreateConfigType = "create-config"

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 CreateConfigSpec

type CreateConfigSpec struct {
	// Specify the content of the config.
	Config map[string]interface{} `json:"config"`
	// Specify the name of the config.
	Name *string `json:"name"`
	// Specify the namespace of the config.
	Namespace *string `json:"namespace,omitempty"`
	// Specify the template of the config.
	Template *string `json:"template,omitempty"`
}

CreateConfigSpec struct for CreateConfigSpec

func NewCreateConfigSpec

func NewCreateConfigSpec() *CreateConfigSpec

NewCreateConfigSpec is short for NewCreateConfigSpecWithDefault which instantiates a new CreateConfigSpec 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 NewCreateConfigSpecEmpty

func NewCreateConfigSpecEmpty() *CreateConfigSpec

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

func NewCreateConfigSpecList

func NewCreateConfigSpecList(ps ...*CreateConfigSpec) []CreateConfigSpec

NewCreateConfigSpecs converts a list CreateConfigSpec pointers to objects. This is helpful when the SetCreateConfigSpec requires a list of objects

func NewCreateConfigSpecWith

func NewCreateConfigSpecWith(config map[string]interface{}, name string) *CreateConfigSpec

NewCreateConfigSpecWith instantiates a new CreateConfigSpec 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 NewCreateConfigSpecWithDefault

func NewCreateConfigSpecWithDefault() *CreateConfigSpec

NewCreateConfigSpecWithDefault instantiates a new CreateConfigSpec 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 (CreateConfigSpec) MarshalJSON

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

func (CreateConfigSpec) ToMap

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

type CreateConfigWorkflowStep

type CreateConfigWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties CreateConfigSpec
}

func CreateConfig

func CreateConfig(name string) *CreateConfigWorkflowStep

func (*CreateConfigWorkflowStep) Alias

func (*CreateConfigWorkflowStep) Build

func (*CreateConfigWorkflowStep) DefType

func (c *CreateConfigWorkflowStep) DefType() string

func (*CreateConfigWorkflowStep) DependsOn

func (c *CreateConfigWorkflowStep) DependsOn(dependsOn []string) *CreateConfigWorkflowStep

func (*CreateConfigWorkflowStep) FromWorkflowStep

func (*CreateConfigWorkflowStep) FromWorkflowSubStep

func (*CreateConfigWorkflowStep) GetConfig

func (o *CreateConfigWorkflowStep) GetConfig() map[string]interface{}

GetConfig returns the Config field value

func (*CreateConfigWorkflowStep) GetConfigOk

func (o *CreateConfigWorkflowStep) GetConfigOk() (map[string]interface{}, bool)

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

func (*CreateConfigWorkflowStep) GetName

func (o *CreateConfigWorkflowStep) GetName() string

GetName returns the Name field value

func (*CreateConfigWorkflowStep) GetNameOk

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

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

func (*CreateConfigWorkflowStep) GetNamespace

func (o *CreateConfigWorkflowStep) GetNamespace() string

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

func (*CreateConfigWorkflowStep) GetNamespaceOk

func (o *CreateConfigWorkflowStep) 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 (*CreateConfigWorkflowStep) GetTemplate

func (o *CreateConfigWorkflowStep) GetTemplate() string

GetTemplate returns the Template field value if set, zero value otherwise.

func (*CreateConfigWorkflowStep) GetTemplateOk

func (o *CreateConfigWorkflowStep) GetTemplateOk() (*string, bool)

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

func (*CreateConfigWorkflowStep) HasNamespace

func (o *CreateConfigWorkflowStep) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*CreateConfigWorkflowStep) HasTemplate

func (o *CreateConfigWorkflowStep) HasTemplate() bool

HasTemplate returns a boolean if a field has been set.

func (*CreateConfigWorkflowStep) If

func (*CreateConfigWorkflowStep) Inputs

func (*CreateConfigWorkflowStep) Outputs

func (*CreateConfigWorkflowStep) SetConfig

func (o *CreateConfigWorkflowStep) SetConfig(v map[string]interface{}) *CreateConfigWorkflowStep

SetConfig sets field value

func (*CreateConfigWorkflowStep) SetName

SetName sets field value

func (*CreateConfigWorkflowStep) SetNamespace

SetNamespace gets a reference to the given string and assigns it to the namespace field. Namespace: Specify the namespace of the config.

func (*CreateConfigWorkflowStep) SetTemplate

SetTemplate gets a reference to the given string and assigns it to the template field. Template: Specify the template of the config.

func (*CreateConfigWorkflowStep) Timeout

func (*CreateConfigWorkflowStep) Validate

func (o *CreateConfigWorkflowStep) Validate() error

Validate validates this CreateConfigSpec 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 (*CreateConfigWorkflowStep) WorkflowStepName

func (c *CreateConfigWorkflowStep) WorkflowStepName() string

type NullableCreateConfigSpec

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

func NewNullableCreateConfigSpec

func NewNullableCreateConfigSpec(val *CreateConfigSpec) *NullableCreateConfigSpec

func (*NullableCreateConfigSpec) Get

func (*NullableCreateConfigSpec) IsSet

func (v *NullableCreateConfigSpec) IsSet() bool

func (NullableCreateConfigSpec) MarshalJSON

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

func (*NullableCreateConfigSpec) Set

func (*NullableCreateConfigSpec) UnmarshalJSON

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

func (*NullableCreateConfigSpec) Unset

func (v *NullableCreateConfigSpec) Unset()

Jump to

Keyboard shortcuts

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