github.com/opentofu/opentofu@v1.7.1/internal/plans/quality.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 plans
     7  
     8  // Quality represents facts about the nature of a plan that might be relevant
     9  // when rendering it, like whether it errored or contains no changes. A plan can
    10  // have multiple qualities.
    11  type Quality int
    12  
    13  //go:generate go run golang.org/x/tools/cmd/stringer -type Quality
    14  
    15  const (
    16  	// Errored plans did not successfully complete, and cannot be applied.
    17  	Errored Quality = iota
    18  	// NoChanges plans won't result in any actions on infrastructure, or any
    19  	// semantically meaningful updates to state. They can sometimes still affect
    20  	// the format of state if applied.
    21  	NoChanges
    22  )