Help us shape the future of Go! Take the 2026 Go Developer Survey

render

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: AGPL-3.0, AGPL-3.0-only Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedForges = []string{"gitlab", "github", "gitea", "forgejo", "azuredevops"}

SupportedForges lists forges with render support.

Functions

func Check

func Check(rootDir, forge string, rendered []byte) error

Check verifies the committed CI file matches the rendered output. Returns nil if current, a structured error describing the drift if stale.

func Emit

func Emit(forge string, p model.Pipeline) ([]byte, error)

Emit dispatches to the appropriate forge's emitter. One forge, one package, one identity — the dispatch names forges only, never a serialization backend. Returns an error for unsupported forges — no silent skipping.

func ForgeTarget

func ForgeTarget(forge string) (string, error)

ForgeTarget returns the CI file path that a forge expects.

func Plan

func Plan(cfg *config.Config) (model.Pipeline, error)

Plan builds a forge-neutral Pipeline from StageFreight configuration.

The pipeline graph is structurally stable across all lifecycle modes. Mode dispatch is the binary's job — the planner never branches the graph by lifecycle.mode. Review and publish exist for all modes; the runtime renders not_applicable where needed.

Returns an error if ci.image is missing — no defaults, no guessing.

Types

This section is empty.

Directories

Path Synopsis
Package azuredevops renders a StageFreight pipeline to an Azure DevOps pipeline.
Package azuredevops renders a StageFreight pipeline to an Azure DevOps pipeline.
Package forgejo renders a StageFreight pipeline to a Forgejo Actions workflow.
Package forgejo renders a StageFreight pipeline to a Forgejo Actions workflow.
Package gitea renders a StageFreight pipeline to a Gitea Actions workflow.
Package gitea renders a StageFreight pipeline to a Gitea Actions workflow.
Package github renders a StageFreight pipeline to a GitHub Actions workflow.
Package github renders a StageFreight pipeline to a GitHub Actions workflow.
Package gitlab lowers a forge-neutral model.Pipeline to GitLab CI YAML.
Package gitlab lowers a forge-neutral model.Pipeline to GitLab CI YAML.
internal
actions
Package actions is a private serialization backend: it writes a forge-neutral model.Pipeline out in the GitHub Actions workflow wire format.
Package actions is a private serialization backend: it writes a forge-neutral model.Pipeline out in the GitHub Actions workflow wire format.
azurepipelines
Package azurepipelines is a private serialization backend: it writes a forge-neutral model.Pipeline out as an Azure DevOps pipeline (azure-pipelines.yml).
Package azurepipelines is a private serialization backend: it writes a forge-neutral model.Pipeline out as an Azure DevOps pipeline (azure-pipelines.yml).
Package model defines the forge-neutral CI pipeline types.
Package model defines the forge-neutral CI pipeline types.

Jump to

Keyboard shortcuts

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