Documentation
¶
Index ¶
Constants ¶
View Source
const ( VariableAttributeType = "type" VariableAttributeDefault = "default" VariableAttributeDescription = "description" )
Variables ¶
View Source
var VariableBlockSchema = &hcl.BodySchema{ Attributes: []hcl.AttributeSchema{ {Name: VariableAttributeDescription}, {Name: VariableAttributeDefault}, {Name: VariableAttributeType}, }, }
VariableBlockSchema defines the hcl.BodySchema for a root variable block. It allows us to decode blocks effectively.
View Source
var VariableFileSchema = &hcl.BodySchema{ Blocks: []hcl.BlockHeaderSchema{ { Type: "variable", LabelNames: []string{"name"}, }, }, }
VariableFileSchema defines the hcl.BlockHeaderSchema for each root variable block. It allows us to capture the label for use as the variable name.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.