mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 02:20:07 -04:00
55 lines
1.8 KiB
Go
55 lines
1.8 KiB
Go
// Code generated by "stringer -type=ComponentInstanceStatus component_instance.go"; DO NOT EDIT.
|
|
|
|
package hooks
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[ComponentInstanceStatusInvalid-0]
|
|
_ = x[ComponentInstancePending-46]
|
|
_ = x[ComponentInstancePlanning-112]
|
|
_ = x[ComponentInstancePlanned-80]
|
|
_ = x[ComponentInstanceApplying-97]
|
|
_ = x[ComponentInstanceApplied-65]
|
|
_ = x[ComponentInstanceErrored-69]
|
|
_ = x[ComponentInstanceDeferred-68]
|
|
}
|
|
|
|
const (
|
|
_ComponentInstanceStatus_name_0 = "ComponentInstanceStatusInvalid"
|
|
_ComponentInstanceStatus_name_1 = "ComponentInstancePending"
|
|
_ComponentInstanceStatus_name_2 = "ComponentInstanceApplied"
|
|
_ComponentInstanceStatus_name_3 = "ComponentInstanceDeferredComponentInstanceErrored"
|
|
_ComponentInstanceStatus_name_4 = "ComponentInstancePlanned"
|
|
_ComponentInstanceStatus_name_5 = "ComponentInstanceApplying"
|
|
_ComponentInstanceStatus_name_6 = "ComponentInstancePlanning"
|
|
)
|
|
|
|
var (
|
|
_ComponentInstanceStatus_index_3 = [...]uint8{0, 25, 49}
|
|
)
|
|
|
|
func (i ComponentInstanceStatus) String() string {
|
|
switch {
|
|
case i == 0:
|
|
return _ComponentInstanceStatus_name_0
|
|
case i == 46:
|
|
return _ComponentInstanceStatus_name_1
|
|
case i == 65:
|
|
return _ComponentInstanceStatus_name_2
|
|
case 68 <= i && i <= 69:
|
|
i -= 68
|
|
return _ComponentInstanceStatus_name_3[_ComponentInstanceStatus_index_3[i]:_ComponentInstanceStatus_index_3[i+1]]
|
|
case i == 80:
|
|
return _ComponentInstanceStatus_name_4
|
|
case i == 97:
|
|
return _ComponentInstanceStatus_name_5
|
|
case i == 112:
|
|
return _ComponentInstanceStatus_name_6
|
|
default:
|
|
return "ComponentInstanceStatus(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|