]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blame - vendor/github.com/hashicorp/terraform/terraform/context_graph_type.go
Upgrade to 0.12
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / terraform / context_graph_type.go
CommitLineData
bae9f6d2
JC
1package 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.
8type GraphType byte
9
10const (
11 GraphTypeInvalid GraphType = 0
12 GraphTypeLegacy GraphType = iota
13 GraphTypeRefresh
14 GraphTypePlan
15 GraphTypePlanDestroy
16 GraphTypeApply
bae9f6d2 17 GraphTypeValidate
107c1cdb 18 GraphTypeEval // only visits in-memory elements such as variables, locals, and outputs.
bae9f6d2
JC
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.
24var GraphTypeMap = map[string]GraphType{
25 "apply": GraphTypeApply,
bae9f6d2
JC
26 "plan": GraphTypePlan,
27 "plan-destroy": GraphTypePlanDestroy,
28 "refresh": GraphTypeRefresh,
29 "legacy": GraphTypeLegacy,
30 "validate": GraphTypeValidate,
107c1cdb 31 "eval": GraphTypeEval,
bae9f6d2 32}