pipeline

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pipeline renders a forge.PipelineSpec as a YAML document.

The output format mirrors OpenAPI/AsyncAPI: a top-level "pipelineSpec" version field, an "info" section, a "functions" list (each entry has governance metadata, contract hash, and input/output schemas), and a "graph" section listing inferred dependency edges (which function produces each input).

Typical usage:

reg := forge.NewRegistry("OEE Calculation Pipeline", "1.0.0").
    WithDescription("Signed, governed OEE computation pipeline.")
availabilityCalc.Register(reg)
performanceCalc.Register(reg)
oeeCalc.Register(reg)

yamlBytes, err := pipeline.Render(reg.Spec())
if err != nil {
    log.Fatal(err)
}
fmt.Println(string(yamlBytes))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(spec forge.PipelineSpec) ([]byte, error)

Render serialises spec as a pipelineSpec YAML document.

The output is deterministic for a given spec (functions appear in registration order, graph edges in consumer-then-input order). Suitable for git diffs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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