]>
Commit | Line | Data |
---|---|---|
bae9f6d2 JC |
1 | // Code generated by "stringer -type=InstanceType instancetype.go"; DO NOT EDIT. |
2 | ||
3 | package terraform | |
4 | ||
15c0b25d | 5 | import "strconv" |
bae9f6d2 | 6 | |
107c1cdb ND |
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[TypeInvalid-0] | |
12 | _ = x[TypePrimary-1] | |
13 | _ = x[TypeTainted-2] | |
14 | _ = x[TypeDeposed-3] | |
15 | } | |
16 | ||
bae9f6d2 JC |
17 | const _InstanceType_name = "TypeInvalidTypePrimaryTypeTaintedTypeDeposed" |
18 | ||
19 | var _InstanceType_index = [...]uint8{0, 11, 22, 33, 44} | |
20 | ||
21 | func (i InstanceType) String() string { | |
22 | if i < 0 || i >= InstanceType(len(_InstanceType_index)-1) { | |
15c0b25d | 23 | return "InstanceType(" + strconv.FormatInt(int64(i), 10) + ")" |
bae9f6d2 JC |
24 | } |
25 | return _InstanceType_name[_InstanceType_index[i]:_InstanceType_index[i+1]] | |
26 | } |