github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/model/v1beta1/publisher_string.go (about) 1 // Code generated by "stringer -type=Publisher --trimprefix=Publisher"; DO NOT EDIT. 2 3 package v1beta1 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[publisherUnknown-0] 12 _ = x[PublisherNoop-1] 13 _ = x[PublisherIpfs-2] 14 _ = x[PublisherFilecoin-3] 15 _ = x[PublisherEstuary-4] 16 _ = x[publisherDone-5] 17 } 18 19 const _Publisher_name = "publisherUnknownNoopIpfsFilecoinEstuarypublisherDone" 20 21 var _Publisher_index = [...]uint8{0, 16, 20, 24, 32, 39, 52} 22 23 func (i Publisher) String() string { 24 if i < 0 || i >= Publisher(len(_Publisher_index)-1) { 25 return "Publisher(" + strconv.FormatInt(int64(i), 10) + ")" 26 } 27 return _Publisher_name[_Publisher_index[i]:_Publisher_index[i+1]] 28 }