2023-05-02 10:33:06 -05:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2018-03-30 21:58:57 -05:00
|
|
|
package addrs
|
|
|
|
|
|
|
|
// PathAttr is the address of an attribute of the "path" object in
|
|
|
|
// the interpolation scope, like "path.module".
|
|
|
|
type PathAttr struct {
|
|
|
|
referenceable
|
|
|
|
Name string
|
|
|
|
}
|
2018-04-03 20:03:47 -05:00
|
|
|
|
|
|
|
func (pa PathAttr) String() string {
|
|
|
|
return "path." + pa.Name
|
|
|
|
}
|
2021-07-10 17:18:19 -05:00
|
|
|
|
|
|
|
func (pa PathAttr) UniqueKey() UniqueKey {
|
|
|
|
return pa // A PathAttr is its own UniqueKey
|
|
|
|
}
|
|
|
|
|
|
|
|
func (pa PathAttr) uniqueKeySigil() {}
|