github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/storagemetric_string.go (about)

     1  // Code generated by "stringer -type=storageMetric -trimprefix=storageMetric xl-storage-disk-id-check.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[storageMetricMakeVolBulk-0]
    12  	_ = x[storageMetricMakeVol-1]
    13  	_ = x[storageMetricListVols-2]
    14  	_ = x[storageMetricStatVol-3]
    15  	_ = x[storageMetricDeleteVol-4]
    16  	_ = x[storageMetricWalkDir-5]
    17  	_ = x[storageMetricListDir-6]
    18  	_ = x[storageMetricReadFile-7]
    19  	_ = x[storageMetricAppendFile-8]
    20  	_ = x[storageMetricCreateFile-9]
    21  	_ = x[storageMetricReadFileStream-10]
    22  	_ = x[storageMetricRenameFile-11]
    23  	_ = x[storageMetricRenameData-12]
    24  	_ = x[storageMetricCheckParts-13]
    25  	_ = x[storageMetricDelete-14]
    26  	_ = x[storageMetricDeleteVersions-15]
    27  	_ = x[storageMetricVerifyFile-16]
    28  	_ = x[storageMetricWriteAll-17]
    29  	_ = x[storageMetricDeleteVersion-18]
    30  	_ = x[storageMetricWriteMetadata-19]
    31  	_ = x[storageMetricUpdateMetadata-20]
    32  	_ = x[storageMetricReadVersion-21]
    33  	_ = x[storageMetricReadXL-22]
    34  	_ = x[storageMetricReadAll-23]
    35  	_ = x[storageMetricStatInfoFile-24]
    36  	_ = x[storageMetricReadMultiple-25]
    37  	_ = x[storageMetricDeleteAbandonedParts-26]
    38  	_ = x[storageMetricDiskInfo-27]
    39  	_ = x[storageMetricLast-28]
    40  }
    41  
    42  const _storageMetric_name = "MakeVolBulkMakeVolListVolsStatVolDeleteVolWalkDirListDirReadFileAppendFileCreateFileReadFileStreamRenameFileRenameDataCheckPartsDeleteDeleteVersionsVerifyFileWriteAllDeleteVersionWriteMetadataUpdateMetadataReadVersionReadXLReadAllStatInfoFileReadMultipleDeleteAbandonedPartsDiskInfoLast"
    43  
    44  var _storageMetric_index = [...]uint16{0, 11, 18, 26, 33, 42, 49, 56, 64, 74, 84, 98, 108, 118, 128, 134, 148, 158, 166, 179, 192, 206, 217, 223, 230, 242, 254, 274, 282, 286}
    45  
    46  func (i storageMetric) String() string {
    47  	if i >= storageMetric(len(_storageMetric_index)-1) {
    48  		return "storageMetric(" + strconv.FormatInt(int64(i), 10) + ")"
    49  	}
    50  	return _storageMetric_name[_storageMetric_index[i]:_storageMetric_index[i+1]]
    51  }