Documentation ¶
Index ¶
- func CheckRunConfigTasks(rcts map[string]*rstypes.RunConfigTask) error
- func GenRunConfigTasks(uuid util.UUIDGenerator, c *config.Config, runName string, ...) map[string]*rstypes.RunConfigTask
- func GenTasksLevels(rcts map[string]*rstypes.RunConfigTask) error
- func GetAllParents(rcts map[string]*rstypes.RunConfigTask, task *rstypes.RunConfigTask) []*rstypes.RunConfigTask
- func GetParentDependConditions(t, pt *rstypes.RunConfigTask) []rstypes.RunConfigTaskDependCondition
- func GetParents(rcts map[string]*rstypes.RunConfigTask, task *rstypes.RunConfigTask) []*rstypes.RunConfigTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckRunConfigTasks ¶
func CheckRunConfigTasks(rcts map[string]*rstypes.RunConfigTask) error
func GenRunConfigTasks ¶
func GenRunConfigTasks(uuid util.UUIDGenerator, c *config.Config, runName string, variables map[string]string, refType itypes.RunRefType, branch, tag, ref string) map[string]*rstypes.RunConfigTask
GenRunConfigTasks generates a run config tasks from a run in the config, expanding all the references to tasks this functions assumes that the config is already checked for possible errors (i.e referenced task must exits)
func GenTasksLevels ¶
func GenTasksLevels(rcts map[string]*rstypes.RunConfigTask) error
func GetAllParents ¶
func GetAllParents(rcts map[string]*rstypes.RunConfigTask, task *rstypes.RunConfigTask) []*rstypes.RunConfigTask
GetAllParents returns all the parents (both direct and ancestors) of task. In case of circular dependency it won't loop forever but will also return task as parent of itself
func GetParentDependConditions ¶
func GetParentDependConditions(t, pt *rstypes.RunConfigTask) []rstypes.RunConfigTaskDependCondition
func GetParents ¶
func GetParents(rcts map[string]*rstypes.RunConfigTask, task *rstypes.RunConfigTask) []*rstypes.RunConfigTask
GetParents returns direct parents of task.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.