ipfs-cluster/pintracker/maptracker/operation_string.go
Adrian Lanzafame ab2a883a3d pintracker/mappintracker: separate status and operation concepts
The TrackerStatuses were starting to be used to convey the inflight
status of an 'operation', instead of just the status of the Pin.
I have separated out any thing related to 'operations' and
an operation's 'phases'.

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
2018-05-02 15:24:26 +02:00

17 lines
484 B
Go

// Code generated by "stringer -type=operation"; DO NOT EDIT.
package maptracker
import "strconv"
const _Operation_name = "OperationUnknownOperationPinOperationUnpinOperationSyncOperationRecover"
var _Operation_index = [...]uint8{0, 16, 28, 42, 55, 71}
func (i operation) String() string {
if i < 0 || i >= operation(len(_Operation_index)-1) {
return "operation(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
}