hcl

package
v0.0.0-...-07a67ae Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindMatchingBlocks

func FindMatchingBlocks(b *hclwrite.Body, name string, labels []string) []*hclwrite.Block

func HclBytesToJson

func HclBytesToJson(hclBytes []byte) string

func HclStringToJson

func HclStringToJson(hcl string) string

func JsonToHcl

func JsonToHcl(jsonStr string) string

func Open

func Open(path string) *hcl.File

func WriteAttribute

func WriteAttribute(blockBody *hclwrite.Body, value interface{})

write attribute

func WriteBodyBodyHcl

func WriteBodyBodyHcl(body *hclwrite.Body, key string, values []interface{})

write block

Types

This section is empty.

Jump to

Keyboard shortcuts

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