plan

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package plan normalizes `terraform show -json` output into a shape that is convenient for rule evaluation. It flattens terraform-json's representation into before/after maps plus a normalized action list, so a CEL rule can read either the planned end-state (after) or the transition (actions) uniformly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceChange

type ResourceChange struct {
	Address string
	Type    string
	Name    string
	// Actions is the normalized change set: one or more of
	// create|read|update|delete, or the synthetic "replace" / "no-op".
	Actions []string
	Before  map[string]interface{}
	After   map[string]interface{}
}

ResourceChange is a normalized view of a single planned change.

func Load

func Load(data []byte) ([]ResourceChange, error)

Load parses terraform plan JSON into normalized changes.

Jump to

Keyboard shortcuts

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