cuetf

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDataSource

func GenerateDataSource(schema thema.Schema) (b []byte, err error)

GenerateDataSource takes a cue.Value and generates the corresponding Terraform data source.

func GenerateSchemaAttributes

func GenerateSchemaAttributes(nodes []types.Node) (string, error)

func GetKindName

func GetKindName(rawName string) string

func GetPanelType

func GetPanelType(name string) string

TODO: Better way to get panel type?

func GetResourceName

func GetResourceName(rawName string) string

func GetStructName

func GetStructName(rawName string) string

Types

type TVarsDataSource

type TVarsDataSource struct {
	Name             string
	StructName       string
	Description      string
	Models           string
	SchemaAttributes string
}

The following group of types, beginning with tvars_*, all contain the set of variables expected by the corresponding named template file under "templates/".

type TVarsSchemaAttribute

type TVarsSchemaAttribute struct {
	Name                   string
	Description            string
	AttributeType          string
	DeprecationMessage     string
	Computed               bool
	Optional               bool
	ElementType            string // Used for simple lists
	NestedAttributes       string // Used for objects
	NestedObjectAttributes string // Used for complex lists
}

The following group of types, beginning with tvars_*, all contain the set of variables expected by the corresponding named template file under "templates/".

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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