diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/terraform/edge_destroy.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/terraform/edge_destroy.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/terraform/edge_destroy.go b/vendor/github.com/hashicorp/terraform/terraform/edge_destroy.go new file mode 100644 index 0000000..bc9d638 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/terraform/edge_destroy.go | |||
@@ -0,0 +1,17 @@ | |||
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 } | ||