diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/helper/schema/resource_data_get_source.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/helper/schema/resource_data_get_source.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/helper/schema/resource_data_get_source.go b/vendor/github.com/hashicorp/terraform/helper/schema/resource_data_get_source.go new file mode 100644 index 0000000..7dd655d --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/helper/schema/resource_data_get_source.go | |||
@@ -0,0 +1,17 @@ | |||
1 | package schema | ||
2 | |||
3 | //go:generate stringer -type=getSource resource_data_get_source.go | ||
4 | |||
5 | // getSource represents the level we want to get for a value (internally). | ||
6 | // Any source less than or equal to the level will be loaded (whichever | ||
7 | // has a value first). | ||
8 | type getSource byte | ||
9 | |||
10 | const ( | ||
11 | getSourceState getSource = 1 << iota | ||
12 | getSourceConfig | ||
13 | getSourceDiff | ||
14 | getSourceSet | ||
15 | getSourceExact // Only get from the _exact_ level | ||
16 | getSourceLevelMask getSource = getSourceState | getSourceConfig | getSourceDiff | getSourceSet | ||
17 | ) | ||