converter

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. * * This product includes software developed at Datadog (https://www.datadoghq.com) Copyright 2024 Datadog, Inc.

Index

Constants

This section is empty.

Variables

View Source
var DefaultConverted = func(ctx context.Context, file *hcl.File, inputVariables VariableMap) (model.Document, error) {
	c := converter{bytes: file.Bytes, inputVars: inputVariables}
	body, err := c.convertBody(ctx, file.Body.(*hclsyntax.Body), 0)

	if err != nil {
		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 VariableMap

type VariableMap map[string]cty.Value

VariableMap 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