github.com/skyscape-cloud-services/terraform@v0.9.2-0.20170609144644-7ece028a1747/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 }