Documentation
¶
Index ¶
Constants ¶
View Source
const ( Creating = "creating" Active = "active" Inactive = "inactive" Deleting = "deleting" Failed = "failed" )
Shared resource lifecycle states. Domain-specific state machines add only states that do not describe a general resource lifecycle.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edge ¶
type Edge string
Edge represents a state transition edge. The transition must be a string with an arrow, for example "requested -> approved".
type Machine ¶
Machine represents a finite state machine keyed by action name.
func (Machine) CanTransition ¶
CanTransition reports whether a transition from one state to another is allowed.
func (Machine) Default ¶
Default returns the default state. If no default state was configured it returns an empty string.
Click to show internal directories.
Click to hide internal directories.