github.com/r3labs/terraform@v0.8.4/terraform/context_graph_type.go (about) 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 GraphTypePlan 14 GraphTypePlanDestroy 15 GraphTypeApply 16 ) 17 18 // GraphTypeMap is a mapping of human-readable string to GraphType. This 19 // is useful to use as the mechanism for human input for configurable 20 // graph types. 21 var GraphTypeMap = map[string]GraphType{ 22 "apply": GraphTypeApply, 23 "plan": GraphTypePlan, 24 "plan-destroy": GraphTypePlanDestroy, 25 "legacy": GraphTypeLegacy, 26 }