diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/configs/variabletypehint_string.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/configs/variabletypehint_string.go | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/configs/variabletypehint_string.go b/vendor/github.com/hashicorp/terraform/configs/variabletypehint_string.go new file mode 100644 index 0000000..2b50428 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/configs/variabletypehint_string.go | |||
@@ -0,0 +1,39 @@ | |||
1 | // Code generated by "stringer -type VariableTypeHint"; DO NOT EDIT. | ||
2 | |||
3 | package configs | ||
4 | |||
5 | import "strconv" | ||
6 | |||
7 | func _() { | ||
8 | // An "invalid array index" compiler error signifies that the constant values have changed. | ||
9 | // Re-run the stringer command to generate them again. | ||
10 | var x [1]struct{} | ||
11 | _ = x[TypeHintNone-0] | ||
12 | _ = x[TypeHintString-83] | ||
13 | _ = x[TypeHintList-76] | ||
14 | _ = x[TypeHintMap-77] | ||
15 | } | ||
16 | |||
17 | const ( | ||
18 | _VariableTypeHint_name_0 = "TypeHintNone" | ||
19 | _VariableTypeHint_name_1 = "TypeHintListTypeHintMap" | ||
20 | _VariableTypeHint_name_2 = "TypeHintString" | ||
21 | ) | ||
22 | |||
23 | var ( | ||
24 | _VariableTypeHint_index_1 = [...]uint8{0, 12, 23} | ||
25 | ) | ||
26 | |||
27 | func (i VariableTypeHint) String() string { | ||
28 | switch { | ||
29 | case i == 0: | ||
30 | return _VariableTypeHint_name_0 | ||
31 | case 76 <= i && i <= 77: | ||
32 | i -= 76 | ||
33 | return _VariableTypeHint_name_1[_VariableTypeHint_index_1[i]:_VariableTypeHint_index_1[i+1]] | ||
34 | case i == 83: | ||
35 | return _VariableTypeHint_name_2 | ||
36 | default: | ||
37 | return "VariableTypeHint(" + strconv.FormatInt(int64(i), 10) + ")" | ||
38 | } | ||
39 | } | ||