differ

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeDiffForAttribute

func ComputeDiffForAttribute(change structured.Change, attribute *jsonprovider.Attribute, parentAction plans.Action) computed.Diff

ComputeDiffForAttribute generates the diff for the change. It handles 3 specific cases:

  • When the attribute for which the change is generated is a nested object, it generates the diff for each attribute of the nested object.
  • If the attribute is write-only, due to the fact that its changes will always be null, we want to return a diff with the same action as the parent's. If we use change.CalculateAction(), then the action will always be NoOp because of the which will skip from showing this in the diff.
  • If none above, it tries to generate the diff by using the specific generator for the attr type.

func ComputeDiffForBlock

func ComputeDiffForBlock(change structured.Change, block *jsonprovider.Block) computed.Diff

func ComputeDiffForOutput

func ComputeDiffForOutput(change structured.Change) computed.Diff

func ComputeDiffForType

func ComputeDiffForType(change structured.Change, ctype cty.Type) computed.Diff

Types

type CreateSensitiveRenderer

type CreateSensitiveRenderer func(computed.Diff, bool, bool) computed.DiffRenderer

type NestingMode

type NestingMode string

NestingMode is a wrapper around a string type to describe the various different kinds of nesting modes that can be applied to nested blocks and objects.

Jump to

Keyboard shortcuts

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