github.com/iaas-resource-provision/iaas-rpc@v1.0.7-0.20211021023331-ed21f798c408/internal/terraform/graphtype_string.go (about) 1 // Code generated by "stringer -type=GraphType context_graph_type.go"; DO NOT EDIT. 2 3 package terraform 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[GraphTypeInvalid-0] 12 _ = x[GraphTypePlan-1] 13 _ = x[GraphTypePlanDestroy-2] 14 _ = x[GraphTypePlanRefreshOnly-3] 15 _ = x[GraphTypeApply-4] 16 _ = x[GraphTypeValidate-5] 17 _ = x[GraphTypeEval-6] 18 } 19 20 const _GraphType_name = "GraphTypeInvalidGraphTypePlanGraphTypePlanDestroyGraphTypePlanRefreshOnlyGraphTypeApplyGraphTypeValidateGraphTypeEval" 21 22 var _GraphType_index = [...]uint8{0, 16, 29, 49, 73, 87, 104, 117} 23 24 func (i GraphType) String() string { 25 if i >= GraphType(len(_GraphType_index)-1) { 26 return "GraphType(" + strconv.FormatInt(int64(i), 10) + ")" 27 } 28 return _GraphType_name[_GraphType_index[i]:_GraphType_index[i+1]] 29 }