differ

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package differ provides the logic for converting a changed into a computed diff

Index

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

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

ComputeDiffForType computes the diff for a change that has a cty type

Types

type CreateSensitiveRenderer

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

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.

Jump to

Keyboard shortcuts

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