mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-25 16:31:10 -06:00
034e944070
This is part of a general effort to move all of Terraform's non-library package surface under internal in order to reinforce that these are for internal use within Terraform only. If you were previously importing packages under this prefix into an external codebase, you could pin to an earlier release tag as an interim solution until you've make a plan to achieve the same functionality some other way.
38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
// Code generated by "stringer -type=ResourceInstanceChangeActionReason changes.go"; DO NOT EDIT.
|
|
|
|
package plans
|
|
|
|
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[ResourceInstanceChangeNoReason-0]
|
|
_ = x[ResourceInstanceReplaceBecauseTainted-84]
|
|
_ = x[ResourceInstanceReplaceByRequest-82]
|
|
_ = x[ResourceInstanceReplaceBecauseCannotUpdate-70]
|
|
}
|
|
|
|
const (
|
|
_ResourceInstanceChangeActionReason_name_0 = "ResourceInstanceChangeNoReason"
|
|
_ResourceInstanceChangeActionReason_name_1 = "ResourceInstanceReplaceBecauseCannotUpdate"
|
|
_ResourceInstanceChangeActionReason_name_2 = "ResourceInstanceReplaceByRequest"
|
|
_ResourceInstanceChangeActionReason_name_3 = "ResourceInstanceReplaceBecauseTainted"
|
|
)
|
|
|
|
func (i ResourceInstanceChangeActionReason) String() string {
|
|
switch {
|
|
case i == 0:
|
|
return _ResourceInstanceChangeActionReason_name_0
|
|
case i == 70:
|
|
return _ResourceInstanceChangeActionReason_name_1
|
|
case i == 82:
|
|
return _ResourceInstanceChangeActionReason_name_2
|
|
case i == 84:
|
|
return _ResourceInstanceChangeActionReason_name_3
|
|
default:
|
|
return "ResourceInstanceChangeActionReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|