4 "github.com/hashicorp/terraform/providers"
5 "github.com/hashicorp/terraform/states"
8 // NodeDestroyableDataResourceInstance represents a resource that is "destroyable":
9 // it is ready to be destroyed.
10 type NodeDestroyableDataResourceInstance struct {
11 *NodeAbstractResourceInstance
15 func (n *NodeDestroyableDataResourceInstance) EvalTree() EvalNode {
16 addr := n.ResourceInstanceAddr()
18 var providerSchema *ProviderSchema
19 // We don't need the provider, but we're calling EvalGetProvider to load the
21 var provider providers.Interface
24 var state *states.ResourceInstanceObject
28 Addr: n.ResolvedProvider,
30 Schema: &providerSchema,
35 ProviderAddr: n.ResolvedProvider,
36 ProviderSchema: &providerSchema,