mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 08:00:17 -06:00
cb2e9119aa
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
24 lines
578 B
Go
24 lines
578 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package addrs
|
|
|
|
// TerraformAttr is the address of an attribute of the "terraform" object in
|
|
// the interpolation scope, like "terraform.workspace".
|
|
type TerraformAttr struct {
|
|
referenceable
|
|
Name string
|
|
}
|
|
|
|
func (ta TerraformAttr) String() string {
|
|
return "terraform." + ta.Name
|
|
}
|
|
|
|
func (ta TerraformAttr) UniqueKey() UniqueKey {
|
|
return ta // A TerraformAttr is its own UniqueKey
|
|
}
|
|
|
|
func (ta TerraformAttr) uniqueKeySigil() {}
|