github.com/trawler/terraform@v0.10.8-0.20171106022149-4b1c7a1d9b48/terraform/edge_destroy.go (about) 1 package terraform 2 3 import ( 4 "fmt" 5 6 "github.com/hashicorp/terraform/dag" 7 ) 8 9 // DestroyEdge is an edge that represents a standard "destroy" relationship: 10 // Target depends on Source because Source is destroying. 11 type DestroyEdge struct { 12 S, T dag.Vertex 13 } 14 15 func (e *DestroyEdge) Hashcode() interface{} { return fmt.Sprintf("%p-%p", e.S, e.T) } 16 func (e *DestroyEdge) Source() dag.Vertex { return e.S } 17 func (e *DestroyEdge) Target() dag.Vertex { return e.T }