mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 01:41:48 -06:00
c6300d511c
Only used in targets for now. The plan is to use this for interpolation as well. This allows us to target: * individual resources expanded by `count` using bracket / index notation. * deposed / tainted resources with an `InstanceType` field after name Docs to follow.
14 lines
263 B
Go
14 lines
263 B
Go
package terraform
|
|
|
|
//go:generate stringer -type=InstanceType instancetype.go
|
|
|
|
// InstanceType is an enum of the various types of instances store in the State
|
|
type InstanceType int
|
|
|
|
const (
|
|
TypeInvalid InstanceType = iota
|
|
TypePrimary
|
|
TypeTainted
|
|
TypeDeposed
|
|
)
|