github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/xl-storage-format-v2_string.go (about)

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