Documentation
¶
Index ¶
Constants ¶
const ( DefaultStagesPrefix = "deploy" WhenManual = "manual" )
const DefaultBinary = "terraform"
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 ¶
func BuildPipelineIR ¶ added in v0.10.0
func BuildPipelineIR( cfg *configpkg.Config, execCfg execution.Config, contributions []*pipeline.Contribution, depGraph *graph.DependencyGraph, allModules, targetModules []*discovery.Module, ) (*pipeline.IR, error)
BuildPipelineIR builds the canonical pipeline IR for the GitLab generator from raw inputs. Provider-specific knobs (e.g. DetailedPlan inferred from "MR comments enabled?") are derived from the GitLab settings; the actual IR construction goes through pipelinetest.BuildIR so the gitlab and github helpers stay in lockstep.
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 ¶
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.
func (*Generator) IsMREnabled ¶
IsMREnabled returns true if MR integration is enabled in config.