diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/terraform/context_graph_type.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/terraform/context_graph_type.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/terraform/context_graph_type.go b/vendor/github.com/hashicorp/terraform/terraform/context_graph_type.go new file mode 100644 index 0000000..084f010 --- /dev/null +++ b/vendor/github.com/hashicorp/terraform/terraform/context_graph_type.go | |||
@@ -0,0 +1,32 @@ | |||
1 | package terraform | ||
2 | |||
3 | //go:generate stringer -type=GraphType context_graph_type.go | ||
4 | |||
5 | // GraphType is an enum of the type of graph to create with a Context. | ||
6 | // The values of the constants may change so they shouldn't be depended on; | ||
7 | // always use the constant name. | ||
8 | type GraphType byte | ||
9 | |||
10 | const ( | ||
11 | GraphTypeInvalid GraphType = 0 | ||
12 | GraphTypeLegacy GraphType = iota | ||
13 | GraphTypeRefresh | ||
14 | GraphTypePlan | ||
15 | GraphTypePlanDestroy | ||
16 | GraphTypeApply | ||
17 | GraphTypeInput | ||
18 | GraphTypeValidate | ||
19 | ) | ||
20 | |||
21 | // GraphTypeMap is a mapping of human-readable string to GraphType. This | ||
22 | // is useful to use as the mechanism for human input for configurable | ||
23 | // graph types. | ||
24 | var GraphTypeMap = map[string]GraphType{ | ||
25 | "apply": GraphTypeApply, | ||
26 | "input": GraphTypeInput, | ||
27 | "plan": GraphTypePlan, | ||
28 | "plan-destroy": GraphTypePlanDestroy, | ||
29 | "refresh": GraphTypeRefresh, | ||
30 | "legacy": GraphTypeLegacy, | ||
31 | "validate": GraphTypeValidate, | ||
32 | } | ||