mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-27 12:00:04 -04:00
* Updating the license from MPL to Business Source License Going forward, this project will be licensed under the Business Source License v1.1. Please see our blog post for more details at https://hashi.co/bsl-blog, FAQ at https://hashi.co/license-faq, and details of the license at www.hashicorp.com/bsl. * Update copyright file headers to BUSL-1.1 --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
25 lines
824 B
Go
25 lines
824 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package addrs
|
|
|
|
// Referenceable is an interface implemented by all address types that can
|
|
// appear as references in configuration language expressions.
|
|
type Referenceable interface {
|
|
// referenceableSigil is private to ensure that all Referenceables are
|
|
// implentented in this current package. For now this does nothing.
|
|
referenceableSigil()
|
|
|
|
// 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
|
|
}
|
|
|
|
// referenceable is an empty struct that implements Referenceable, add it to
|
|
// your Referenceable struct so that it can be recognized as such.
|
|
type referenceable struct {
|
|
}
|
|
|
|
func (r referenceable) referenceableSigil() {
|
|
}
|