]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - vendor/github.com/hashicorp/terraform/helper/schema/getsource_string.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / helper / schema / getsource_string.go
1 // Code generated by "stringer -type=getSource resource_data_get_source.go"; DO NOT EDIT.
2
3 package schema
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[getSourceState-1]
12 _ = x[getSourceConfig-2]
13 _ = x[getSourceDiff-4]
14 _ = x[getSourceSet-8]
15 _ = x[getSourceExact-16]
16 _ = x[getSourceLevelMask-15]
17 }
18
19 const (
20 _getSource_name_0 = "getSourceStategetSourceConfig"
21 _getSource_name_1 = "getSourceDiff"
22 _getSource_name_2 = "getSourceSet"
23 _getSource_name_3 = "getSourceLevelMaskgetSourceExact"
24 )
25
26 var (
27 _getSource_index_0 = [...]uint8{0, 14, 29}
28 _getSource_index_3 = [...]uint8{0, 18, 32}
29 )
30
31 func (i getSource) String() string {
32 switch {
33 case 1 <= i && i <= 2:
34 i -= 1
35 return _getSource_name_0[_getSource_index_0[i]:_getSource_index_0[i+1]]
36 case i == 4:
37 return _getSource_name_1
38 case i == 8:
39 return _getSource_name_2
40 case 15 <= i && i <= 16:
41 i -= 15
42 return _getSource_name_3[_getSource_index_3[i]:_getSource_index_3[i+1]]
43 default:
44 return "getSource(" + strconv.FormatInt(int64(i), 10) + ")"
45 }
46 }