mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 07:33:32 -06:00
cb2e9119aa
Signed-off-by: namgyalangmo <75657887+namgyalangmo@users.noreply.github.com>
29 lines
803 B
Go
29 lines
803 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
|
|
|
|
// Referenceable is an interface implemented by all address types that can
|
|
// appear as references in configuration language expressions.
|
|
type Referenceable interface {
|
|
// All implementations of this interface must be covered by the type switch
|
|
// in lang.Scope.buildEvalContext.
|
|
referenceableSigil()
|
|
|
|
// All Referenceable address types must have unique keys.
|
|
UniqueKeyer
|
|
|
|
// String produces a string representation of the address that could be
|
|
// parsed as a HCL traversal and passed to ParseRef to produce an identical
|
|
// result.
|
|
String() string
|
|
}
|
|
|
|
type referenceable struct {
|
|
}
|
|
|
|
func (r referenceable) referenceableSigil() {
|
|
}
|