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): {}, }
View Source
var WorkflowStates = map[WorkflowState]struct{}{ WorkflowState(Running): {}, WorkflowState(Successful): {}, WorkflowState(Failed): {}, WorkflowState(Canceled): {}, WorkflowState(TimedOut): {}, WorkflowState(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)
Click to show internal directories.
Click to hide internal directories.