processing

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoverPipelines

func DiscoverPipelines(root string, maxDepth int) ([]*api.Pipeline, error)

DiscoverPipelines walks root looking for .many.yaml files up to maxDepth. A maxDepth of -1 means unlimited. 0 means only root itself. Results are sorted by path depth (parents before children).

func InterpolateContext added in v1.3.0

func InterpolateContext(ctx map[string]any) error

InterpolateContext performs a single-pass template render of string values in the context map against the map itself. Strings containing "{{" are parsed as Go templates with Sprig functions and executed with ctx as data.

func LoadContextFile

func LoadContextFile(filename string) (map[string]any, error)

LoadContextFile reads a YAML file and returns it as a map.

func MergeContext

func MergeContext(global, local map[string]any) map[string]any

MergeContext performs a shallow merge of local context over global context. Local keys override global keys at the top level.

func RunAll

func RunAll(inputDir, outputDir string, globalContext map[string]any, maxDepth int, contextFile string) error

RunAll discovers pipelines, executes each, and returns a summary of results. It copies the source tree to outputDir first, then processes in-place.

func RunInstances added in v1.4.0

func RunInstances(cfg *api.InstancesConfig, inputDir, outputDir string, globalContext map[string]any, maxDepth int, contextFile string) error

RunInstances processes each instance: filtered copy, pipeline discovery, execution.

func RunPipeline

func RunPipeline(pipeline *api.Pipeline, globalContext map[string]any) error

RunPipeline executes a single pipeline's steps sequentially.

func RunSingle

func RunSingle(pipelineFile, inputDir, outputDir string, globalContext map[string]any, contextFile string) error

RunSingle copies the source tree, runs one specific pipeline, and cleans up. The pipelineFile must be a path within inputDir.

Types

This section is empty.

Jump to

Keyboard shortcuts

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