github.com/cycloidio/terraform@v1.1.10-0.20220513142504-76d5c768dc63/addrs/terraform_attr.go (about)

     1  package addrs
     2  
     3  // TerraformAttr is the address of an attribute of the "terraform" object in
     4  // the interpolation scope, like "terraform.workspace".
     5  type TerraformAttr struct {
     6  	referenceable
     7  	Name string
     8  }
     9  
    10  func (ta TerraformAttr) String() string {
    11  	return "terraform." + ta.Name
    12  }
    13  
    14  func (ta TerraformAttr) UniqueKey() UniqueKey {
    15  	return ta // A TerraformAttr is its own UniqueKey
    16  }
    17  
    18  func (ta TerraformAttr) uniqueKeySigil() {}