github.com/opentofu/opentofu@v1.7.1/internal/backend/operation_type.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 backend 7 8 //go:generate go run golang.org/x/tools/cmd/stringer -type=OperationType operation_type.go 9 10 // OperationType is an enum used with Operation to specify the operation 11 // type to perform for OpenTofu. 12 type OperationType uint 13 14 const ( 15 OperationTypeInvalid OperationType = iota 16 OperationTypeRefresh 17 OperationTypePlan 18 OperationTypeApply 19 )