Documentation ¶
Overview ¶
Package differ provides the logic for converting a changed into a computed diff
Index ¶
- func ComputeDiffForAttribute(change structured.Change, attribute *tjson.SchemaAttribute) (computed.Diff, error)
- func ComputeDiffForBlock(change structured.Change, block *tjson.SchemaBlock) (computed.Diff, error)
- func ComputeDiffForOutput(change structured.Change) (computed.Diff, error)
- func ComputeDiffForType(change structured.Change, ctype cty.Type) (computed.Diff, error)
- type CreateSensitiveRenderer
- type NestingMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeDiffForAttribute ¶
func ComputeDiffForAttribute(change structured.Change, attribute *tjson.SchemaAttribute) (computed.Diff, error)
ComputeDiffForAttribute computes the diff for a single attribute
func ComputeDiffForBlock ¶
func ComputeDiffForBlock(change structured.Change, block *tjson.SchemaBlock) (computed.Diff, error)
ComputeDiffForBlock computes the diff for a block.
func ComputeDiffForOutput ¶
func ComputeDiffForOutput(change structured.Change) (computed.Diff, error)
ComputeDiffForOutput computes the diff for the given change.
func ComputeDiffForType ¶
ComputeDiffForType computes the diff for a change that has a cty type
Types ¶
type CreateSensitiveRenderer ¶
CreateSensitiveRenderer is a function that creates a sensitive renderer
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.
Click to show internal directories.
Click to hide internal directories.