Documentation
¶
Index ¶
- func DestroySummary(w io.Writer, tfPlans []terraforminfra.TerraformComponentPlan, ...)
- func DestroySummaryJSON(w io.Writer, tfPlans []terraforminfra.TerraformComponentPlan, ...) error
- func Summary(w io.Writer, tfPlans []terraforminfra.TerraformComponentPlan, ...)
- func SummaryJSON(w io.Writer, tfPlans []terraforminfra.TerraformComponentPlan, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroySummary ¶
func DestroySummary(w io.Writer, tfPlans []terraforminfra.TerraformComponentPlan, k8sPlans []fluxinfra.KustomizePlan, noColor bool)
DestroySummary writes a destroy plan preview to w, in the same layout as Summary. The header is "Windsor Destroy Plan", and each count is "-N". A new component shows "(no state)" or "(not deployed)", because it has nothing to destroy. It writes no footer and no hints. The caller writes the confirmation text.
func DestroySummaryJSON ¶
func DestroySummaryJSON(w io.Writer, tfPlans []terraforminfra.TerraformComponentPlan, k8sPlans []fluxinfra.KustomizePlan) error
DestroySummaryJSON writes the destroy plan results to w as JSON, in the same schema as SummaryJSON. When is_new is true, the component has no state to destroy. The only resource action in a destroy plan is "delete".
func Summary ¶
func Summary(w io.Writer, tfPlans []terraforminfra.TerraformComponentPlan, k8sPlans []fluxinfra.KustomizePlan, hints []string, noColor bool)
Summary writes the combined Terraform and Kustomize plan summary to w. Each component row shows a count for each action, "(no changes)", or "(error: ...)". Below each row, it lists the changed resources, up to resourceListCap entries. When a component has changes, a footer tells the user how to see the full diffs. It writes the upgrade hints for missing CLI tools at the bottom.
func SummaryJSON ¶
func SummaryJSON(w io.Writer, tfPlans []terraforminfra.TerraformComponentPlan, k8sPlans []fluxinfra.KustomizePlan) error
SummaryJSON writes the plan results to w as JSON. When is_new is true, terraform did not run a plan, so all counts are zero. A consumer that looks for pending work MUST check is_new and the counts together.
Types ¶
This section is empty.