2024-02-08 03:48:59 -06:00
|
|
|
// Copyright (c) The OpenTofu Authors
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
2023-05-02 10:33:06 -05:00
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2023-09-20 07:16:53 -05:00
|
|
|
package tofu
|
2015-02-16 21:04:05 -06:00
|
|
|
|
2019-10-17 15:17:23 -05:00
|
|
|
//go:generate go run golang.org/x/tools/cmd/stringer -type=walkOperation graph_walk_operation.go
|
2015-02-16 21:04:05 -06:00
|
|
|
|
|
|
|
// walkOperation is an enum which tells the walkContext what to do.
|
|
|
|
type walkOperation byte
|
|
|
|
|
|
|
|
const (
|
|
|
|
walkInvalid walkOperation = iota
|
|
|
|
walkApply
|
|
|
|
walkPlan
|
|
|
|
walkPlanDestroy
|
|
|
|
walkValidate
|
2015-10-02 13:18:33 -05:00
|
|
|
walkDestroy
|
2016-04-26 12:38:30 -05:00
|
|
|
walkImport
|
2018-05-03 22:41:46 -05:00
|
|
|
walkEval // used just to prepare EvalContext for expression evaluation, with no other actions
|
2015-02-16 21:04:05 -06:00
|
|
|
)
|