github.com/opentofu/opentofu@v1.7.1/internal/legacy/tofu/instancetype.go (about)

     1  // Copyright (c) The OpenTofu Authors
     2  // SPDX-License-Identifier: MPL-2.0
     3  // Copyright (c) 2023 HashiCorp, Inc.
     4  // SPDX-License-Identifier: MPL-2.0
     5  
     6  package tofu
     7  
     8  //go:generate go run golang.org/x/tools/cmd/stringer -type=InstanceType instancetype.go
     9  
    10  // InstanceType is an enum of the various types of instances store in the State
    11  type InstanceType int
    12  
    13  const (
    14  	TypeInvalid InstanceType = iota
    15  	TypePrimary
    16  	TypeTainted
    17  	TypeDeposed
    18  )