mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-03 14:00:52 -05:00
Expand the existing hooks to emit events throughout the planning process, providing enough information for the Terraform Cloud UI to render a live-updating representation of the plan. We also sketch out the equivalent hooks for the apply operation.
37 lines
1,008 B
Go
37 lines
1,008 B
Go
// Code generated by "stringer -type=ProvisionerStatus resource_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[ProvisionerStatusInvalid-0]
|
|
_ = x[ProvisionerProvisioning-112]
|
|
_ = x[ProvisionerProvisioned-80]
|
|
_ = x[ProvisionerErrored-69]
|
|
}
|
|
|
|
const (
|
|
_ProvisionerStatus_name_0 = "ProvisionerStatusInvalid"
|
|
_ProvisionerStatus_name_1 = "ProvisionerErrored"
|
|
_ProvisionerStatus_name_2 = "ProvisionerProvisioned"
|
|
_ProvisionerStatus_name_3 = "ProvisionerProvisioning"
|
|
)
|
|
|
|
func (i ProvisionerStatus) String() string {
|
|
switch {
|
|
case i == 0:
|
|
return _ProvisionerStatus_name_0
|
|
case i == 69:
|
|
return _ProvisionerStatus_name_1
|
|
case i == 80:
|
|
return _ProvisionerStatus_name_2
|
|
case i == 112:
|
|
return _ProvisionerStatus_name_3
|
|
default:
|
|
return "ProvisionerStatus(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|