blob: 7c58c9d5bf2657880ce325f21d7fb51e74827d87 [file] [edit]
// Copyright IBM Corp. 2014, 2026
// SPDX-License-Identifier: BUSL-1.1
package stackaddrs
import "github.com/hashicorp/terraform/internal/collections"
type LocalValue struct {
Name string
}
func (LocalValue) referenceableSigil() {}
func (LocalValue) inStackConfigSigil() {}
func (LocalValue) inStackInstanceSigil() {}
func (v LocalValue) String() string {
return "local." + v.Name
}
func (v LocalValue) UniqueKey() collections.UniqueKey[LocalValue] {
return v
}
// A LocalValue is its own [collections.UniqueKey].
func (LocalValue) IsUniqueKey(LocalValue) {}
// ConfigLocalValue places a [LocalValue] in the context of a particular [Stack].
type ConfigLocalValue = InStackConfig[LocalValue]
// AbsLocalValue places a [LocalValue] in the context of a particular [StackInstance].
type AbsLocalValue = InStackInstance[LocalValue]