generate

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStagesPrefix = "deploy"
	WhenManual          = "manual"
)
View Source
const (
	DefaultBinary     = "terraform"
	DefaultTofuBinary = "tofu"
)

DefaultBinary is the terraform binary name used when execution.Binary is empty. Exported so wizard / tests can refer to a single source of truth.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator transforms TerraCi IR into GitLab CI domain models. The IR is bound at construction time — the IR carries every module + contribution the pipeline should render.

func NewGenerator

func NewGenerator(cfg *configpkg.Config, ir *pipeline.IR) *Generator

NewGenerator creates a new GitLab pipeline generator bound to the supplied IR.

func (*Generator) DryRun

func (g *Generator) DryRun() (*pipeline.DryRunResult, error)

DryRun returns a summary of the bound IR without rendering YAML.

func (*Generator) Generate

func (g *Generator) Generate() (pipeline.GeneratedPipeline, error)

Generate creates a GitLab CI pipeline from the bound IR.

Jump to

Keyboard shortcuts

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