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/output_value.go

31 lines
819 B

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package stackaddrs
import "github.com/hashicorp/terraform/internal/collections"
type OutputValue struct {
Name string
}
func (OutputValue) inStackConfigSigil() {}
func (OutputValue) inStackInstanceSigil() {}
func (v OutputValue) String() string {
return "output." + v.Name
}
func (v OutputValue) UniqueKey() collections.UniqueKey[OutputValue] {
return v
}
// An OutputValue is its own [collections.UniqueKey].
func (OutputValue) IsUniqueKey(OutputValue) {}
// ConfigOutputValue places an [OutputValue] in the context of a particular [Stack].
type ConfigOutputValue = InStackConfig[OutputValue]
// AbsOutputValue places an [OutputValue] in the context of a particular [StackInstance].
type AbsOutputValue = InStackInstance[OutputValue]