schema

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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