hcltools

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTokensForOutput

func CreateTokensForOutput(in string) hclwrite.Tokens

CreateTokensForOutput create slice of tokens, from splitted by dot substrings of in.

func InterfaceToCty

func InterfaceToCty(in interface{}) (cty.Value, error)

InterfaceToCty convert go type to cty.Value(for hlc lib), using hack with JSON marshal/unmarshal.

func ProvidersToHCL

func ProvidersToHCL(in interface{}) (*hclwrite.File, error)

func ReplaceStingMarkerInBody

func ReplaceStingMarkerInBody(body *hclwrite.Body, marker, value string)

ReplaceStingMarkerInBody replace all substrings in TokenQuotedLit tokens to value as terraform expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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