Documentation ¶
Index ¶
- type Bunch
- type Node
- type NodeStatus
- type NodeStatusEqualValueChecker
- type NodeStatusInValueChecker
- type NodeStatusRecord
- type NodeStatusValueChecker
- type NodeType
- type NodeVariable
- type NodeVariableType
- type StringEqualValueChecker
- type StringInValueChecker
- type StringValueChecker
- type WorkflowNode
- type WorkflowNodeCondition
- type WorkflowNodeStatusCondition
- type WorkflowNodeVariableCondition
- type WorkflowNodeVariables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bunch ¶
type Bunch struct {
Node
}
func (*Bunch) AddNodeStatus ¶
func (bunch *Bunch) AddNodeStatus(record NodeStatusRecord) *Node
type Node ¶
type Node struct { Name string Parent *Node Children []*Node Status NodeStatus }
func (Node) MarshalJSON ¶
func (*Node) UnmarshalJSON ¶
type NodeStatus ¶
type NodeStatus uint
const ( Unknown NodeStatus = iota Suspended Complete Queued Submitted Active Aborted Shutdown Halted Running )
func GetNodeStatus ¶
func GetNodeStatus(status string) NodeStatus
func (NodeStatus) String ¶
func (status NodeStatus) String() string
type NodeStatusEqualValueChecker ¶
type NodeStatusEqualValueChecker struct {
ExpectedValue NodeStatus
}
func (*NodeStatusEqualValueChecker) CheckValue ¶
func (c *NodeStatusEqualValueChecker) CheckValue(s NodeStatus) bool
type NodeStatusInValueChecker ¶
type NodeStatusInValueChecker struct {
ExpectedValues []NodeStatus
}
func (*NodeStatusInValueChecker) CheckValue ¶
func (c *NodeStatusInValueChecker) CheckValue(s NodeStatus) bool
type NodeStatusRecord ¶
type NodeStatusValueChecker ¶
type NodeStatusValueChecker interface {
CheckValue(status NodeStatus) bool
}
type NodeVariable ¶
type NodeVariable struct { Name string `json:"name"` Value string `json:"value"` Type NodeVariableType `json:"type"` }
type NodeVariableType ¶
type NodeVariableType uint
const ( Variable NodeVariableType = iota GeneratedVariable )
type StringEqualValueChecker ¶
type StringEqualValueChecker struct {
ExpectedValue string
}
func (*StringEqualValueChecker) CheckValue ¶
func (c *StringEqualValueChecker) CheckValue(s string) bool
type StringInValueChecker ¶
type StringInValueChecker struct {
ExpectedValues []string
}
func (*StringInValueChecker) CheckValue ¶
func (c *StringInValueChecker) CheckValue(s string) bool
type StringValueChecker ¶
type WorkflowNode ¶
type WorkflowNode struct { Name string `json:"name"` Status NodeStatus `json:"status"` Type NodeType `json:"node_type"` VariableList WorkflowNodeVariables `json:"variable_list"` InheritedVariableList []WorkflowNodeVariables `json:"inherited_variable_list"` }
func (*WorkflowNode) GetVariable ¶
func (node *WorkflowNode) GetVariable(name string) *NodeVariable
type WorkflowNodeCondition ¶
type WorkflowNodeCondition interface {
IsFit(node *WorkflowNode) bool
}
type WorkflowNodeStatusCondition ¶
type WorkflowNodeStatusCondition struct {
Checker NodeStatusValueChecker
}
func (*WorkflowNodeStatusCondition) IsFit ¶
func (c *WorkflowNodeStatusCondition) IsFit(node *WorkflowNode) bool
type WorkflowNodeVariableCondition ¶
type WorkflowNodeVariableCondition struct { VariableName string Checker StringValueChecker }
func (*WorkflowNodeVariableCondition) IsFit ¶
func (c *WorkflowNodeVariableCondition) IsFit(node *WorkflowNode) bool
type WorkflowNodeVariables ¶
type WorkflowNodeVariables struct { Path string `json:"path"` VariableList []NodeVariable `json:"variable_list"` GeneratedVariableList []NodeVariable `json:"generated_variable_list"` }
func (*WorkflowNodeVariables) GetVariable ¶
func (vars *WorkflowNodeVariables) GetVariable(name string) *NodeVariable
Click to show internal directories.
Click to hide internal directories.