Documentation
¶
Index ¶
- func AddTask(wf *awfv1.Workflow, task *WorkflowTask) *awfv1.Workflow
- func Delete(wfName string) (bool, error)
- func DeleteMultiple(wfs []awfv1.Workflow) error
- func EnableGC(spec metav1.Object)
- func IsDone(wf *awfv1.Workflow) bool
- func IsRunning(wf *awfv1.Workflow) bool
- func List(opts *metav1.ListOptions) ([]awfv1.Workflow, error)
- func ListByLabel(labelKey string, labelValue string) ([]awfv1.Workflow, error)
- func ListByLabels(labels map[string]string) ([]awfv1.Workflow, error)
- func ListDone(labels ...map[string]string) ([]awfv1.Workflow, error)
- func ListRunning(labels ...map[string]string) ([]awfv1.Workflow, error)
- func New(name string, labels ...map[string]string) *awfv1.Workflow
- func NumTasks(wf *awfv1.Workflow) int
- func ParseWorkflow(wf *awfv1.Workflow) map[string]*WorkflowItem
- func Run(wf *awfv1.Workflow) error
- type WorkflowItem
- type WorkflowTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteMultiple ¶
func ParseWorkflow ¶
func ParseWorkflow(wf *awfv1.Workflow) map[string]*WorkflowItem
ParseWorkflow returns task name -> *WorkflowItem
Types ¶
type WorkflowItem ¶
type WorkflowItem struct { Task *awfv1.DAGTask Template *awfv1.Template NodeStatus *awfv1.NodeStatus Labels map[string]string }
func (*WorkflowItem) Dependencies ¶
func (wfItem *WorkflowItem) Dependencies() strset.Set
func (*WorkflowItem) FinishedAt ¶
func (wfItem *WorkflowItem) FinishedAt() *time.Time
func (*WorkflowItem) Phase ¶
func (wfItem *WorkflowItem) Phase() *awfv1.NodePhase
func (*WorkflowItem) StartedAt ¶
func (wfItem *WorkflowItem) StartedAt() *time.Time
Click to show internal directories.
Click to hide internal directories.