github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/backend/operationtype_string.go (about) 1 // Code generated by "stringer -type=OperationType operation_type.go"; DO NOT EDIT. 2 3 package backend 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[OperationTypeInvalid-0] 12 _ = x[OperationTypeRefresh-1] 13 _ = x[OperationTypePlan-2] 14 _ = x[OperationTypeApply-3] 15 } 16 17 const _OperationType_name = "OperationTypeInvalidOperationTypeRefreshOperationTypePlanOperationTypeApply" 18 19 var _OperationType_index = [...]uint8{0, 20, 40, 57, 75} 20 21 func (i OperationType) String() string { 22 if i >= OperationType(len(_OperationType_index)-1) { 23 return "OperationType(" + strconv.FormatInt(int64(i), 10) + ")" 24 } 25 return _OperationType_name[_OperationType_index[i]:_OperationType_index[i+1]] 26 }