Documentation
¶
Overview ¶
Package state is the task state machine — the single source of truth for which board moves are legal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Statuses = []string{"backlog", "queued", "running", "review", "done", "failed", "cancelled"}
Statuses are the board columns, in lifecycle order.
var Transitions = map[string]map[string]bool{ "backlog": {"queued": true, "cancelled": true}, "queued": {"running": true, "cancelled": true, "failed": true, "backlog": true}, "running": {"review": true, "failed": true, "cancelled": true}, "review": {"done": true, "queued": true, "cancelled": true}, "failed": {"queued": true, "backlog": true, "cancelled": true}, "done": {"queued": true}, "cancelled": {"backlog": true, "queued": true}, }
Transitions maps a status to everything it may become.
Functions ¶
Types ¶
type IllegalTransition ¶
type IllegalTransition struct{ Msg string }
IllegalTransition is returned for any move the machine forbids.
func (*IllegalTransition) Error ¶
func (e *IllegalTransition) Error() string