mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
23 lines
742 B
Go
23 lines
742 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package plans
|
|
|
|
// Quality represents facts about the nature of a plan that might be relevant
|
|
// when rendering it, like whether it errored or contains no changes. A plan can
|
|
// have multiple qualities.
|
|
type Quality int
|
|
|
|
//go:generate go run golang.org/x/tools/cmd/stringer -type Quality
|
|
|
|
const (
|
|
// Errored plans did not successfully complete, and cannot be applied.
|
|
Errored Quality = iota
|
|
// NoChanges plans won't result in any actions on infrastructure, or any
|
|
// semantically meaningful updates to state. They can sometimes still affect
|
|
// the format of state if applied.
|
|
NoChanges
|
|
)
|