states

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionStates = map[ActionState]struct{}{
	Pending:          {},
	Queued:           {},
	Running:          {},
	Successful:       {},
	Failed:           {},
	Canceled:         {},
	TimedOut:         {},
	Backoff:          {},
	Invalid:          {},
	RetriesExhausted: {},
	Info:             {},
}
View Source
var FinalStates = map[FinalState]struct{}{
	FinalState(Successful): {},
	FinalState(Failed):     {},
	FinalState(Canceled):   {},
	FinalState(TimedOut):   {},
	FinalState(Invalid):    {},
}

Functions

This section is empty.

Types

type ActionState

type ActionState string
const (
	Pending          ActionState = "PENDING"
	Queued           ActionState = "QUEUED"
	Running          ActionState = "RUNNING"
	Successful       ActionState = "SUCCESSFUL"
	Failed           ActionState = "FAILED"
	Canceled         ActionState = "CANCELED"
	TimedOut         ActionState = "TIMED_OUT"
	Backoff          ActionState = "BACKOFF"
	Invalid          ActionState = "INVALID"
	RetriesExhausted ActionState = "RETRIES_EXHAUSTED"
	Info             ActionState = "INFO"
)

func Parse

func Parse(s string) (ActionState, error)

func (ActionState) String

func (fs ActionState) String() string

type FinalState

type FinalState ActionState

func ParseFinalState

func ParseFinalState(s string) (FinalState, error)

func (*FinalState) UnmarshalYAML

func (fs *FinalState) UnmarshalYAML(unmarshal func(interface{}) error) error

type WorkflowState

type WorkflowState ActionState

func ParseWorkflowState

func ParseWorkflowState(s string) (WorkflowState, error)

Jump to

Keyboard shortcuts

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