github.com/magodo/terraform@v0.11.12-beta1/terraform/node_data_destroy.go (about) 1 package terraform 2 3 // NodeDestroyableDataResource represents a resource that is "plannable": 4 // it is ready to be planned in order to create a diff. 5 type NodeDestroyableDataResource struct { 6 *NodeAbstractResource 7 } 8 9 // GraphNodeEvalable 10 func (n *NodeDestroyableDataResource) EvalTree() EvalNode { 11 addr := n.NodeAbstractResource.Addr 12 13 // stateId is the ID to put into the state 14 stateId := addr.stateId() 15 16 // Just destroy it. 17 var state *InstanceState 18 return &EvalWriteState{ 19 Name: stateId, 20 State: &state, // state is nil here 21 } 22 }