runconfig

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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, 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 GetParents

func GetParents(rcts map[string]*rstypes.RunConfigTask, task *rstypes.RunConfigTask) []*rstypes.RunConfigTask

GetParents returns direct parents of task.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL