opentofu/internal/states/statemgr/snapshotmetarel_string.go
Martin Atkins f40800b3a4 Move states/ to internal/states/
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.
2021-05-17 14:09:07 -07:00

38 lines
937 B
Go

// Code generated by "stringer -type=SnapshotMetaRel"; DO NOT EDIT.
package statemgr
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[SnapshotOlder-60]
_ = x[SnapshotNewer-62]
_ = x[SnapshotEqual-61]
_ = x[SnapshotUnrelated-33]
_ = x[SnapshotLegacy-63]
}
const (
_SnapshotMetaRel_name_0 = "SnapshotUnrelated"
_SnapshotMetaRel_name_1 = "SnapshotOlderSnapshotEqualSnapshotNewerSnapshotLegacy"
)
var (
_SnapshotMetaRel_index_1 = [...]uint8{0, 13, 26, 39, 53}
)
func (i SnapshotMetaRel) String() string {
switch {
case i == 33:
return _SnapshotMetaRel_name_0
case 60 <= i && i <= 63:
i -= 60
return _SnapshotMetaRel_name_1[_SnapshotMetaRel_index_1[i]:_SnapshotMetaRel_index_1[i+1]]
default:
return "SnapshotMetaRel(" + strconv.FormatInt(int64(i), 10) + ")"
}
}