nesting

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapTfFieldNameToAPI

func MapTfFieldNameToAPI(resourceType, fieldName string) string

Probably can be deprecated. Need to evaluate.

func NestBlocks

func NestBlocks(resourceType string, schemaBlock *tfjson.SchemaBlock, structData map[string]interface{}, parentID string, indexedNestedBlocks map[string][]string) string

nestBlocks takes a schema and generates all of the appropriate nesting of any. top-level blocks as well as nested lists or sets.

func WriteAttrLine

func WriteAttrLine(key string, value interface{}, usedInBlock bool) string

WriteAttrLine outputs a line of HCL configuration with a configurable depth. for known types.

func WriteNestedBlock

func WriteNestedBlock(resourceType string, attributes []string, schemaBlock *tfjson.SchemaBlock, attrStruct map[string]interface{}, _ string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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