mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-29 10:21:01 -06:00
7357e7f734
The types in this package are intended to replace plan- and diff-related types from the "terraform" package, although those older types must remain for now so that they can be used to implement shims for older codepaths. type "Changes" is approximately equivalent to terraform.Diff, but renamed since it now describes whole objects before and after rather than an attribute-level diff as before. The term "diff" is now reserved for the visual rendition of the changes we'll display to the user, although rendering of this new Changes model is not yet implemented.
16 lines
523 B
Go
16 lines
523 B
Go
package plans
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/states"
|
|
)
|
|
|
|
// PlannedState merges the set of changes described by the receiver into the
|
|
// given prior state to produce the planned result state.
|
|
//
|
|
// The result is an approximation of the state as it would exist after
|
|
// applying these changes, omitting any values that cannot be determined until
|
|
// the changes are actually applied.
|
|
func (c *Changes) PlannedState(prior *states.State) (*states.State, error) {
|
|
panic("Changes.PlannedState not yet implemented")
|
|
}
|