converter

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConverted = func(file *hcl.File, inputVariables InputVariableMap) (model.Document, error) {
	inputVarMap = inputVariables
	c := converter{bytes: file.Bytes}
	body, err := c.convertBody(file.Body.(*hclsyntax.Body))

	if err != nil {
		sentry.CaptureException(err)
		if er, ok := err.(*hcl.Diagnostic); ok && er.Subject != nil {
			return nil, err
		}

		return nil, err
	}

	return body, nil
}

DefaultConverted an hcl File to a toJson serializable object This assumes that the body is a hclsyntax.Body

Functions

This section is empty.

Types

type InputVariableMap added in v1.2.2

type InputVariableMap map[string]cty.Value

InputVariableMap represents a set of terraform input variables

Jump to

Keyboard shortcuts

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