6 "github.com/hashicorp/terraform/config"
9 // NodeRootVariable represents a root variable input.
10 type NodeRootVariable struct {
11 Config *config.Variable
14 func (n *NodeRootVariable) Name() string {
15 result := fmt.Sprintf("var.%s", n.Config.Name)
19 // GraphNodeReferenceable
20 func (n *NodeRootVariable) ReferenceableName() []string {
21 return []string{n.Name()}