hcltools

package
v0.4.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 9 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 tu 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