Documentation ¶
Index ¶
- func AddTask(wf *awfv1.Workflow, task *WorkflowTask) *awfv1.Workflow
- func EnableGC(spec metav1.Object)
- func IsDone(wf *awfv1.Workflow) bool
- func IsRunning(wf *awfv1.Workflow) bool
- func NumTasks(wf *awfv1.Workflow) int
- func ParseWorkflow(wf *awfv1.Workflow) map[string]*WorkflowItem
- type Client
- func (c *Client) Delete(wfName string) (bool, error)
- func (c *Client) DeleteMultiple(wfs []awfv1.Workflow) error
- func (c *Client) List(opts *metav1.ListOptions) ([]awfv1.Workflow, error)
- func (c *Client) ListByLabel(labelKey string, labelValue string) ([]awfv1.Workflow, error)
- func (c *Client) ListByLabels(labels map[string]string) ([]awfv1.Workflow, error)
- func (c *Client) ListDone(labels ...map[string]string) ([]awfv1.Workflow, error)
- func (c *Client) ListRunning(labels ...map[string]string) ([]awfv1.Workflow, error)
- func (c *Client) NewWorkflow(name string, labels ...map[string]string) *awfv1.Workflow
- func (c *Client) Run(wf *awfv1.Workflow) error
- type WorkflowItem
- type WorkflowTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseWorkflow ¶
func ParseWorkflow(wf *awfv1.Workflow) map[string]*WorkflowItem
ParseWorkflow returns task name -> *WorkflowItem
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ListByLabel ¶
func (*Client) ListByLabels ¶
func (*Client) ListRunning ¶
func (*Client) NewWorkflow ¶
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.