You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/stacks/stackaddrs/local_value.go

32 lines
842 B

// Copyright (c) HashiCorp, Inc.
// 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]