Documentation ¶
Index ¶
- func GenerateDataSource(schema thema.Schema) (b []byte, err error)
- func GenerateSchemaAttributes(nodes []types.Node) (string, error)
- func GetKindName(rawName string) string
- func GetPanelType(name string) string
- func GetResourceName(rawName string) string
- func GetStructName(rawName string) string
- type TVarsDataSource
- type TVarsSchemaAttribute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDataSource ¶
GenerateDataSource takes a cue.Value and generates the corresponding Terraform data source.
func GetKindName ¶
func GetResourceName ¶
func GetStructName ¶
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/".
Click to show internal directories.
Click to hide internal directories.