Documentation
¶
Overview ¶
Package drift compares cidx.toml declarations with actual CI platform configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PhaseDiff ¶
type PhaseDiff struct {
Name string
CIDX bool // present in cidx.toml
CI bool // present in CI workflow
Status Status
}
PhaseDiff represents a phase comparison result.
type Result ¶
type Result struct {
Workflow string // workflow file the config was compared against
Pipeline string // pipeline the workflow implements ("" = every pipeline)
Phases []PhaseDiff
Triggers []TriggerDiff
}
Result holds the complete drift analysis.
func CompareFromData ¶
CompareFromData analyzes drift using raw YAML data. workflowPath is not read; it names the workflow so the comparison can be scoped to the pipeline that workflow implements (see pipelineFor).
Click to show internal directories.
Click to hide internal directories.