suspend

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

Documentation

Index

Constants

View Source
const SuspendType = "suspend"

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 NullableSuspendSpec

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

func NewNullableSuspendSpec

func NewNullableSuspendSpec(val *SuspendSpec) *NullableSuspendSpec

func (*NullableSuspendSpec) Get

func (v *NullableSuspendSpec) Get() *SuspendSpec

func (*NullableSuspendSpec) IsSet

func (v *NullableSuspendSpec) IsSet() bool

func (NullableSuspendSpec) MarshalJSON

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

func (*NullableSuspendSpec) Set

func (v *NullableSuspendSpec) Set(val *SuspendSpec)

func (*NullableSuspendSpec) UnmarshalJSON

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

func (*NullableSuspendSpec) Unset

func (v *NullableSuspendSpec) Unset()

type SuspendSpec

type SuspendSpec struct {
	// Specify the wait duration time to resume workflow such as \"30s\", \"1min\" or \"2m15s\"
	Duration *string `json:"duration,omitempty"`
	// The suspend message to show
	Message *string `json:"message,omitempty"`
}

SuspendSpec struct for SuspendSpec

func NewSuspendSpec

func NewSuspendSpec() *SuspendSpec

NewSuspendSpec is short for NewSuspendSpecWithDefault which instantiates a new SuspendSpec 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 NewSuspendSpecEmpty

func NewSuspendSpecEmpty() *SuspendSpec

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

func NewSuspendSpecList

func NewSuspendSpecList(ps ...*SuspendSpec) []SuspendSpec

NewSuspendSpecs converts a list SuspendSpec pointers to objects. This is helpful when the SetSuspendSpec requires a list of objects

func NewSuspendSpecWith

func NewSuspendSpecWith() *SuspendSpec

NewSuspendSpecWith instantiates a new SuspendSpec 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 NewSuspendSpecWithDefault

func NewSuspendSpecWithDefault() *SuspendSpec

NewSuspendSpecWithDefault instantiates a new SuspendSpec 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 (SuspendSpec) MarshalJSON

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

func (SuspendSpec) ToMap

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

type SuspendWorkflowStep

type SuspendWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties SuspendSpec
}

func Suspend

func Suspend(name string) *SuspendWorkflowStep

func (*SuspendWorkflowStep) Alias

func (*SuspendWorkflowStep) Build

func (*SuspendWorkflowStep) DefType

func (s *SuspendWorkflowStep) DefType() string

func (*SuspendWorkflowStep) DependsOn

func (s *SuspendWorkflowStep) DependsOn(dependsOn []string) *SuspendWorkflowStep

func (*SuspendWorkflowStep) FromWorkflowStep

func (s *SuspendWorkflowStep) FromWorkflowStep(from v1beta1.WorkflowStep) (*SuspendWorkflowStep, error)

func (*SuspendWorkflowStep) FromWorkflowSubStep

func (s *SuspendWorkflowStep) FromWorkflowSubStep(from common.WorkflowSubStep) (*SuspendWorkflowStep, error)

func (*SuspendWorkflowStep) GetDuration

func (o *SuspendWorkflowStep) GetDuration() string

GetDuration returns the Duration field value if set, zero value otherwise.

func (*SuspendWorkflowStep) GetDurationOk

func (o *SuspendWorkflowStep) GetDurationOk() (*string, bool)

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

func (*SuspendWorkflowStep) GetMessage

func (o *SuspendWorkflowStep) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*SuspendWorkflowStep) GetMessageOk

func (o *SuspendWorkflowStep) GetMessageOk() (*string, bool)

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

func (*SuspendWorkflowStep) HasDuration

func (o *SuspendWorkflowStep) HasDuration() bool

HasDuration returns a boolean if a field has been set.

func (*SuspendWorkflowStep) HasMessage

func (o *SuspendWorkflowStep) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*SuspendWorkflowStep) If

func (*SuspendWorkflowStep) Inputs

func (*SuspendWorkflowStep) Outputs

func (*SuspendWorkflowStep) SetDuration

func (o *SuspendWorkflowStep) SetDuration(v string) *SuspendWorkflowStep

SetDuration gets a reference to the given string and assigns it to the duration field. Duration: Specify the wait duration time to resume workflow such as \"30s\", \"1min\" or \"2m15s\"

func (*SuspendWorkflowStep) SetMessage

SetMessage gets a reference to the given string and assigns it to the message field. Message: The suspend message to show

func (*SuspendWorkflowStep) Timeout

func (s *SuspendWorkflowStep) Timeout(timeout string) *SuspendWorkflowStep

func (*SuspendWorkflowStep) Validate

func (o *SuspendWorkflowStep) Validate() error

Validate validates this SuspendSpec 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 (*SuspendWorkflowStep) WorkflowStepName

func (s *SuspendWorkflowStep) WorkflowStepName() string

Jump to

Keyboard shortcuts

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