diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/helper/schema/getsource_string.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/helper/schema/getsource_string.go | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/helper/schema/getsource_string.go b/vendor/github.com/hashicorp/terraform/helper/schema/getsource_string.go new file mode 100644 index 0000000..3a97629 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/helper/schema/getsource_string.go | |||
@@ -0,0 +1,36 @@ | |||
1 | // Code generated by "stringer -type=getSource resource_data_get_source.go"; DO NOT EDIT. | ||
2 | |||
3 | package schema | ||
4 | |||
5 | import "fmt" | ||
6 | |||
7 | const ( | ||
8 | _getSource_name_0 = "getSourceStategetSourceConfig" | ||
9 | _getSource_name_1 = "getSourceDiff" | ||
10 | _getSource_name_2 = "getSourceSet" | ||
11 | _getSource_name_3 = "getSourceLevelMaskgetSourceExact" | ||
12 | ) | ||
13 | |||
14 | var ( | ||
15 | _getSource_index_0 = [...]uint8{0, 14, 29} | ||
16 | _getSource_index_1 = [...]uint8{0, 13} | ||
17 | _getSource_index_2 = [...]uint8{0, 12} | ||
18 | _getSource_index_3 = [...]uint8{0, 18, 32} | ||
19 | ) | ||
20 | |||
21 | func (i getSource) String() string { | ||
22 | switch { | ||
23 | case 1 <= i && i <= 2: | ||
24 | i -= 1 | ||
25 | return _getSource_name_0[_getSource_index_0[i]:_getSource_index_0[i+1]] | ||
26 | case i == 4: | ||
27 | return _getSource_name_1 | ||
28 | case i == 8: | ||
29 | return _getSource_name_2 | ||
30 | case 15 <= i && i <= 16: | ||
31 | i -= 15 | ||
32 | return _getSource_name_3[_getSource_index_3[i]:_getSource_index_3[i+1]] | ||
33 | default: | ||
34 | return fmt.Sprintf("getSource(%d)", i) | ||
35 | } | ||
36 | } | ||