Documentation
¶
Index ¶
- func ComputeDiffForAttribute(change structured.Change, attribute *jsonprovider.Attribute, ...) computed.Diff
- func ComputeDiffForBlock(change structured.Change, block *jsonprovider.Block) computed.Diff
- func ComputeDiffForOutput(change structured.Change) computed.Diff
- func ComputeDiffForType(change structured.Change, ctype cty.Type) computed.Diff
- type CreateSensitiveRenderer
- type NestingMode
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 ¶
Types ¶
type CreateSensitiveRenderer ¶
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.