github.com/pulumi/terraform@v1.4.0/pkg/addrs/path_attr.go (about)

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