github.com/opentofu/opentofu@v1.7.1/internal/tofu/node_value.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  // graphNodeTemporaryValue is implemented by nodes that may represent temporary
     9  // values, which are those not saved to the state file. This includes locals,
    10  // variables, and non-root outputs.
    11  // A boolean return value allows a node which may need to be saved to
    12  // conditionally do so.
    13  type graphNodeTemporaryValue interface {
    14  	temporaryValue() bool
    15  }