utils

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFile

func GenerateFile(fileName string, tmplName string, meta interface{})

GenerateFile generates a new file from the passed template and metadata

func GenerateFileWithLogs

func GenerateFileWithLogs(fileName string, tmplName string, meta interface{})

GenerateFileWithLogs generates a new file from the passed template and metadata The difference from GenerateFile function is to output logs

func ToCamel

func ToCamel(str string) string

ToCamel converts a string to CamelCase

Types

type AttributeSchema added in v0.6.0

type AttributeSchema struct {
	Type      interface{} `json:"type"`
	Sensitive bool        `json:"sensitive"`
}

type BlockSchema added in v0.6.0

type BlockSchema struct {
	Attributes map[string]AttributeSchema `json:"attributes"`
	BlockTypes map[string]ResourceSchema  `json:"block_types"`
}

type ProviderSchema added in v0.6.0

type ProviderSchema struct {
	ResourceSchemas map[string]ResourceSchema `json:"resource_schemas"`
}

func LoadProviderSchema added in v0.6.0

func LoadProviderSchema(path string) ProviderSchema

type ProviderSchemas added in v0.6.0

type ProviderSchemas struct {
	AWS ProviderSchema `json:"registry.terraform.io/hashicorp/aws"`
}

type ResourceSchema added in v0.6.0

type ResourceSchema struct {
	Block BlockSchema `json:"block"`
}

type Schema added in v0.6.0

type Schema struct {
	ProviderSchemas ProviderSchemas `json:"provider_schemas"`
}

Jump to

Keyboard shortcuts

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