diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/addrs/referenceable.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/addrs/referenceable.go | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/addrs/referenceable.go b/vendor/github.com/hashicorp/terraform/addrs/referenceable.go new file mode 100644 index 0000000..211083a --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/addrs/referenceable.go | |||
@@ -0,0 +1,20 @@ | |||
1 | package addrs | ||
2 | |||
3 | // Referenceable is an interface implemented by all address types that can | ||
4 | // appear as references in configuration language expressions. | ||
5 | type Referenceable interface { | ||
6 | // All implementations of this interface must be covered by the type switch | ||
7 | // in lang.Scope.buildEvalContext. | ||
8 | referenceableSigil() | ||
9 | |||
10 | // String produces a string representation of the address that could be | ||
11 | // parsed as a HCL traversal and passed to ParseRef to produce an identical | ||
12 | // result. | ||
13 | String() string | ||
14 | } | ||
15 | |||
16 | type referenceable struct { | ||
17 | } | ||
18 | |||
19 | func (r referenceable) referenceableSigil() { | ||
20 | } | ||