mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
7357e7f734
The types in this package are intended to replace plan- and diff-related types from the "terraform" package, although those older types must remain for now so that they can be used to implement shims for older codepaths. type "Changes" is approximately equivalent to terraform.Diff, but renamed since it now describes whole objects before and after rather than an attribute-level diff as before. The term "diff" is now reserved for the visual rendition of the changes we'll display to the user, although rendering of this new Changes model is not yet implemented.
34 lines
618 B
Go
34 lines
618 B
Go
// Code generated by "stringer -type Action"; DO NOT EDIT.
|
|
|
|
package plans
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
_Action_name_0 = "NoOp"
|
|
_Action_name_1 = "Create"
|
|
_Action_name_2 = "Delete"
|
|
_Action_name_3 = "Update"
|
|
_Action_name_4 = "Replace"
|
|
_Action_name_5 = "Read"
|
|
)
|
|
|
|
func (i Action) String() string {
|
|
switch {
|
|
case i == 0:
|
|
return _Action_name_0
|
|
case i == 43:
|
|
return _Action_name_1
|
|
case i == 45:
|
|
return _Action_name_2
|
|
case i == 126:
|
|
return _Action_name_3
|
|
case i == 177:
|
|
return _Action_name_4
|
|
case i == 8592:
|
|
return _Action_name_5
|
|
default:
|
|
return "Action(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|