plan

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MPL-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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.

Jump to

Keyboard shortcuts

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