diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/states/objectstatus_string.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/states/objectstatus_string.go | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/states/objectstatus_string.go b/vendor/github.com/hashicorp/terraform/states/objectstatus_string.go new file mode 100644 index 0000000..96a6db2 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/states/objectstatus_string.go | |||
@@ -0,0 +1,33 @@ | |||
1 | // Code generated by "stringer -type ObjectStatus"; DO NOT EDIT. | ||
2 | |||
3 | package states | ||
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[ObjectReady-82] | ||
12 | _ = x[ObjectTainted-84] | ||
13 | _ = x[ObjectPlanned-80] | ||
14 | } | ||
15 | |||
16 | const ( | ||
17 | _ObjectStatus_name_0 = "ObjectPlanned" | ||
18 | _ObjectStatus_name_1 = "ObjectReady" | ||
19 | _ObjectStatus_name_2 = "ObjectTainted" | ||
20 | ) | ||
21 | |||
22 | func (i ObjectStatus) String() string { | ||
23 | switch { | ||
24 | case i == 80: | ||
25 | return _ObjectStatus_name_0 | ||
26 | case i == 82: | ||
27 | return _ObjectStatus_name_1 | ||
28 | case i == 84: | ||
29 | return _ObjectStatus_name_2 | ||
30 | default: | ||
31 | return "ObjectStatus(" + strconv.FormatInt(int64(i), 10) + ")" | ||
32 | } | ||
33 | } | ||