Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PackIDKeyedVarMap ¶
type Variable ¶
type Variable struct {
// Name is the variable label. This is used to identify variables being
// overridden and during templating.
Name ID
// Description is an optional field which provides additional context to
// users identifying what the variable is used for.
Description string
// Default is an optional field which provides a default value to be used
// in the absence of a user-provided value. It is only in this struct for
// documentation purposes
Default cty.Value
// Type represents the concrete cty type of this variable. If the type is
// unable to be parsed into a cty type, it is invalid.
Type cty.Type
// Value stores the variable value and is used when converting the cty type
// value into a Go type value.
Value cty.Value
// DeclRange is the position marker of the variable within the file it was
// read from. This is used for diagnostics.
DeclRange hcl.Range
// contains filtered or unexported fields
}
Variable encapsulates a single variable as defined within a block according to variableFileSchema and variableBlockSchema.
func (*Variable) SetDefault ¶
func (*Variable) SetDescription ¶
Click to show internal directories.
Click to hide internal directories.