Documentation ¶
Index ¶
- func FirstWorkflowMatchingRules(workflows []catalog.Workflow, env map[string]string) *catalog.Workflow
- func IsActionExecutable(a *catalog.Action, env map[string]string) bool
- func IsStageExecutable(s *catalog.WorkflowStage, env map[string]string) bool
- func IsWorkflowExecutable(w *catalog.Workflow, env map[string]string) bool
- func RunWorkflow(cfg *config.CIDConfig, wf *catalog.Workflow, env map[string]string, ...)
- func RunWorkflowAction(cfg *config.CIDConfig, action *catalog.WorkflowAction, env map[string]string, ...)
- func RunWorkflowStage(cfg *config.CIDConfig, stage *catalog.WorkflowStage, env map[string]string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstWorkflowMatchingRules ¶
func FirstWorkflowMatchingRules(workflows []catalog.Workflow, env map[string]string) *catalog.Workflow
FirstWorkflowMatchingRules returns the first workflow that matches at least one rule
func IsActionExecutable ¶
IsActionExecutable returns true if the action is executable (enabled + at least one rule matches)
func IsStageExecutable ¶
func IsStageExecutable(s *catalog.WorkflowStage, env map[string]string) bool
IsStageExecutable returns true if the stage is executable (enabled + at least one rule matches)
func IsWorkflowExecutable ¶
IsWorkflowExecutable returns true if the workflow is executable (enabled + at least one rule matches)
func RunWorkflow ¶
func RunWorkflowAction ¶
func RunWorkflowStage ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.