You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.4 KiB

  1. // Code generated by "stringer -type VersionType,ErasureAlgo -output=xl-storage-format-v2_string.go xl-storage-format-v2.go"; DO NOT EDIT.
  2. package cmd
  3. import "strconv"
  4. func _() {
  5. // An "invalid array index" compiler error signifies that the constant values have changed.
  6. // Re-run the stringer command to generate them again.
  7. var x [1]struct{}
  8. _ = x[invalidVersionType-0]
  9. _ = x[ObjectType-1]
  10. _ = x[DeleteType-2]
  11. _ = x[LegacyType-3]
  12. _ = x[lastVersionType-4]
  13. }
  14. const _VersionType_name = "invalidVersionTypeObjectTypeDeleteTypeLegacyTypelastVersionType"
  15. var _VersionType_index = [...]uint8{0, 18, 28, 38, 48, 63}
  16. func (i VersionType) String() string {
  17. if i >= VersionType(len(_VersionType_index)-1) {
  18. return "VersionType(" + strconv.FormatInt(int64(i), 10) + ")"
  19. }
  20. return _VersionType_name[_VersionType_index[i]:_VersionType_index[i+1]]
  21. }
  22. func _() {
  23. // An "invalid array index" compiler error signifies that the constant values have changed.
  24. // Re-run the stringer command to generate them again.
  25. var x [1]struct{}
  26. _ = x[invalidErasureAlgo-0]
  27. _ = x[ReedSolomon-1]
  28. _ = x[lastErasureAlgo-2]
  29. }
  30. const _ErasureAlgo_name = "invalidErasureAlgoReedSolomonlastErasureAlgo"
  31. var _ErasureAlgo_index = [...]uint8{0, 18, 29, 44}
  32. func (i ErasureAlgo) String() string {
  33. if i >= ErasureAlgo(len(_ErasureAlgo_index)-1) {
  34. return "ErasureAlgo(" + strconv.FormatInt(int64(i), 10) + ")"
  35. }
  36. return _ErasureAlgo_name[_ErasureAlgo_index[i]:_ErasureAlgo_index[i+1]]
  37. }