Versions in this module Expand all Collapse all v0 v0.1.1 Mar 13, 2020 Changes in this version + var Debug bool = false + var TerraformOutput bool + func ConvertExpressionsHcl2HclS(in []hcl.Expression) []hclsyntax.Expression + func PrintAdded(mr diff.Diffable, p *PrintParams) + func PrintAttributeContext(atdf *AttributesDiff, p *PrintParams) + func PrintModified(name string, p *PrintParams) + func PrintRemoved(mr diff.Diffable, p *PrintParams) + type Attribute hclsyntax.Attribute + func (a Attribute) DiffParam() string + func (a Attribute) Range() hcl.Range + type Attributes struct + List []Attribute + Mapped hclsyntax.Attributes + func NewAttributes(attrs hclsyntax.Attributes) *Attributes + func (a Attributes) GetDiffables() *[]diff.Diffable + func (a Attributes) Len() int + func (a Attributes) Less(i, j int) bool + func (a Attributes) Swap(i, j int) + type AttributesDiff struct + Changes []ChangedAttributeContext + func (atdf *AttributesDiff) Add(ctx ChangedAttributeContext) + func (atdf *AttributesDiff) HasChanges() bool + type Block hclsyntax.Block + func (b Block) DiffParam() string + func (b Block) GetBody() *Body + func (b Block) Range() hcl.Range + type Blocks hclsyntax.Blocks + func (b Blocks) Get(i int) *Block + func (b Blocks) GetDiffables() *[]diff.Diffable + func (b Blocks) Len() int + func (b Blocks) Less(i, j int) bool + func (b Blocks) Range() hcl.Range + func (b Blocks) Swap(i, j int) + type Body hclsyntax.Body + func (b Body) GetBlocks() Blocks + type ChangedAttributeContext struct + Diff *ExpressionDiff + Modif *Attribute + ModificationType int8 + Orig *Attribute + type ChangedExprContext struct + ModifDiffVal string + ModificationType int8 + Modified hclsyntax.Expression + Orig hclsyntax.Expression + OrigDiffValue string + type Expression struct + Contained hclsyntax.Expression + func (e *Expression) DiffParam() string + func (e *Expression) Range() hcl.Range + func (e *Expression) StartRange() hcl.Range + func (e *Expression) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) + func (e *Expression) Variables() []hcl.Traversal + type ExpressionDiff struct + Changed bool + Changes []ChangedExprContext + Nested *ExpressionDiff + func (edf *ExpressionDiff) Add(ctx ChangedExprContext) + func (edf *ExpressionDiff) HasChanges() bool + type Expressions struct + List []Expression + func NewHclExpressions(expressions []hcl.Expression) *Expressions + func NewHclSyntaxExpressions(expressions []hclsyntax.Expression) *Expressions + func (e *Expressions) Get(i int) *Expression + func (e *Expressions) GetDiffables() *[]diff.Diffable + func (e *Expressions) Len() int + func (e *Expressions) Less(i, j int) bool + func (e *Expressions) Swap(i, j int) + type Item struct + Contained hclsyntax.ObjectConsItem + func (i *Item) DiffParam() string + func (i *Item) Value(ctx *hcl.EvalContext) (cty.Value, hcl.Diagnostics) + type Items struct + List []Item + func NewItems(items []hclsyntax.ObjectConsItem) *Items + func (items *Items) Get(i int) *Item + func (items *Items) GetDiffables() *[]diff.Diffable + func (items *Items) Len() int + func (items *Items) Less(i, j int) bool + func (items *Items) Swap(i, j int) + type ModifiedResources struct + func Compare(o, m string) (*ModifiedResources, error) + func CompareFiles(o, m *os.File) (*ModifiedResources, error) + func NewModifiedResources() *ModifiedResources + func (mr *ModifiedResources) Add(s string) + func (mr *ModifiedResources) AddAuthor(s string) + func (mr *ModifiedResources) IsEmpty() bool + func (mr *ModifiedResources) List() *[]string + func (mr *ModifiedResources) ListAuthors() *[]string + type PrintParams struct + AddColor *color.Color + ChangedColor *color.Color + CommentColor *color.Color + Indent int + LocationColor *color.Color + OkColor *color.Color + RemoveColor *color.Color + func GetDefaultPrintParams() *PrintParams + func (p *PrintParams) GetIndentation() string + func (p *PrintParams) Shift() + func (p *PrintParams) Unshift() + type SortableFile struct + File *os.File + func (sf SortableFile) DiffParam() string + type SortableFiles []SortableFile + func (sf SortableFiles) Len() int + func (sf SortableFiles) Less(i, j int) bool + func (sf SortableFiles) Swap(i, j int)