terraform/internal/stacks/stackstate/statekeys/unrecognizedkeyhandling_string.go
Martin Atkins 8b431f5038 stackstate/statekeys: Representation of stacks state keys
Our model for state for a stack involves a set of objects that is each
identified by an opaque string key. Although those keys are opaque to
callers of Terraform Core, we will actually be using them for some meaning
in Terraform Core itself, since that will avoid redundantly storing the
same information both in the key and in the object associated with the
key.

This therefore aims to encapsulate the generation and parsing of these
keys to help ensure we'll always use them consistently.
2023-11-15 12:38:55 -08:00

33 lines
899 B
Go

// Code generated by "stringer -type UnrecognizedKeyHandling"; DO NOT EDIT.
package statekeys
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[FailIfUnrecognized-70]
_ = x[PreserveIfUnrecognized-80]
_ = x[DiscardIfUnrecognized-68]
}
const (
_UnrecognizedKeyHandling_name_0 = "DiscardIfUnrecognized"
_UnrecognizedKeyHandling_name_1 = "FailIfUnrecognized"
_UnrecognizedKeyHandling_name_2 = "PreserveIfUnrecognized"
)
func (i UnrecognizedKeyHandling) String() string {
switch {
case i == 68:
return _UnrecognizedKeyHandling_name_0
case i == 70:
return _UnrecognizedKeyHandling_name_1
case i == 80:
return _UnrecognizedKeyHandling_name_2
default:
return "UnrecognizedKeyHandling(" + strconv.FormatInt(int64(i), 10) + ")"
}
}