varfile

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(root *pack.Pack, filename string, src []byte, ctx *hcl.EvalContext, target *variables.Overrides) (map[string]*hcl.File, hcl.Diagnostics)

Decode parses, decodes, and evaluates expressions in the given HCL source code, in a single step.

Types

type DecodeResult

type DecodeResult struct {
	Overrides variables.Overrides
	Diags     hcl.Diagnostics
	HCLFiles  map[string]*hcl.File
}

DecodeResult is returned by the

func (*DecodeResult) Merge

func (d *DecodeResult) Merge(in DecodeResult)

Merge combines two DecodeResults. Any nil Overrides are discarded.

type DiagExtraFixup

type DiagExtraFixup struct{ Fixed bool }

DiagExtraFixup is a custom type for the sentinel value stored in Extra that indicates whether or not the Ranges in the Diagnostic have been reset to be consistent with the user-supplied input.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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