github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/compute/store/state_string.go (about)

     1  // Code generated by "stringer -type=ExecutionState --trimprefix=ExecutionState --output state_string.go"; DO NOT EDIT.
     2  
     3  package store
     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[ExecutionStateUndefined-0]
    12  	_ = x[ExecutionStateCreated-1]
    13  	_ = x[ExecutionStateBidAccepted-2]
    14  	_ = x[ExecutionStateRunning-3]
    15  	_ = x[ExecutionStateWaitingVerification-4]
    16  	_ = x[ExecutionStateResultAccepted-5]
    17  	_ = x[ExecutionStatePublishing-6]
    18  	_ = x[ExecutionStateCompleted-7]
    19  	_ = x[ExecutionStateFailed-8]
    20  	_ = x[ExecutionStateCancelled-9]
    21  }
    22  
    23  const _ExecutionState_name = "UndefinedCreatedBidAcceptedRunningWaitingVerificationResultAcceptedPublishingCompletedFailedCancelled"
    24  
    25  var _ExecutionState_index = [...]uint8{0, 9, 16, 27, 34, 53, 67, 77, 86, 92, 101}
    26  
    27  func (i ExecutionState) String() string {
    28  	if i < 0 || i >= ExecutionState(len(_ExecutionState_index)-1) {
    29  		return "ExecutionState(" + strconv.FormatInt(int64(i), 10) + ")"
    30  	}
    31  	return _ExecutionState_name[_ExecutionState_index[i]:_ExecutionState_index[i+1]]
    32  }