Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveProject ¶
Types ¶
type Project ¶
type Project struct {
Prefix string `yaml:"prefix"`
AssigneeDomain string `yaml:"assignee_domain,omitempty"`
Members []string `yaml:"members,omitempty"`
Sync Sync `yaml:"sync,omitempty"`
}
func LoadProject ¶
type Workflow ¶
type Workflow struct {
States []string `yaml:"states"`
InitialState string `yaml:"initial_state"`
StateGroups map[string][]string `yaml:"state_groups"`
}
func LoadWorkflow ¶
func (*Workflow) GetCompletedStates ¶
GetCompletedStates returns the list of states in the "completed" state group Returns nil if no completed group is defined
func (*Workflow) GetStateGroup ¶
GetStateGroup returns the states in a named state group Returns nil if the group doesn't exist
func (*Workflow) IsCompleted ¶
IsCompleted checks if a given status is in the "completed" state group
func (*Workflow) IsValidState ¶
Click to show internal directories.
Click to hide internal directories.