aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/terraform-config-inspect/tfconfig/variable.go
blob: 0f73fc995a8840ff03e7d127fa4abc419a9f0595 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package tfconfig

// Variable represents a single variable from a Terraform module.
type Variable struct {
	Name        string `json:"name"`
	Type        string `json:"type,omitempty"`
	Description string `json:"description,omitempty"`

	// Default is an approximate representation of the default value in
	// the native Go type system. The conversion from the value given in
	// configuration may be slightly lossy. Only values that can be
	// serialized by json.Marshal will be included here.
	Default interface{} `json:"default,omitempty"`

	Pos SourcePos `json:"pos"`
}