Documentation ¶
Index ¶
- Variables
- func Clone(SCM *map[string]interface{}, hashes *[]uint64, channel chan int, ...) error
- func GetFiles(root string) (files []string)
- func RunConditions(config *config.Config, pipelineContext *context.Context, ...) (globalResult bool, err error)
- func RunSources(conf *config.Config, pipelineReport *reports.Report, ...) error
- func RunTargets(cfg *config.Config, options *target.Options, pipelineReport *reports.Report, ...) error
- func SortedConditionsKeys(conditions *map[string]condition.Condition) (result []string, err error)
- func SortedSourcesKeys(sources *map[string]source.Source) (result []string, err error)
- func SortedTargetsKeys(targets *map[string]target.Target) (result []string, err error)
- type Engine
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotValidDependsOn is triggered when we define a non existing depends on value. ErrNotValidDependsOn = errors.New("no valid depends_on value") // ErrDependsOnLoopDetected is triggered when we define a dependency loop. ErrDependsOnLoopDetected = errors.New("dependency loop detected") )
Functions ¶
func Clone ¶
func Clone( SCM *map[string]interface{}, hashes *[]uint64, channel chan int, wg *sync.WaitGroup) error
Clone parses a scm configuration then clone the git repository if needed.
func RunConditions ¶
func RunConditions( config *config.Config, pipelineContext *context.Context, pipelineReport *reports.Report) (globalResult bool, err error)
RunConditions run every conditions for a given configuration config.
func RunSources ¶
func RunSources( conf *config.Config, pipelineReport *reports.Report, pipelineContext *context.Context) error
RunSources iterates on every source definition to retrieve every information.
func RunTargets ¶
func RunTargets( cfg *config.Config, options *target.Options, pipelineReport *reports.Report, pipelineContext *context.Context) error
RunTargets iterates on every target to update each them.
func SortedConditionsKeys ¶
SortedConditionsKeys return a a list of resources by building a DAG
func SortedSourcesKeys ¶
SortedSourcesKeys return a a list of resources by building a DAG
Types ¶
type Engine ¶
type Engine struct { Contexts []context.Context Options Options Reports reports.Reports // contains filtered or unexported fields }
Engine defined parameters for a specific engine run.
func (*Engine) ReadConfigurations ¶
ReadConfigurations read every strategies configuration.
Click to show internal directories.
Click to hide internal directories.