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

     1  // Code generated by "stringer -type=decomMetric -trimprefix=decomMetric erasure-server-pool-decom.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[decomMetricDecommissionBucket-0]
    12  	_ = x[decomMetricDecommissionObject-1]
    13  	_ = x[decomMetricDecommissionRemoveObject-2]
    14  }
    15  
    16  const _decomMetric_name = "DecommissionBucketDecommissionObjectDecommissionRemoveObject"
    17  
    18  var _decomMetric_index = [...]uint8{0, 18, 36, 60}
    19  
    20  func (i decomMetric) String() string {
    21  	if i >= decomMetric(len(_decomMetric_index)-1) {
    22  		return "decomMetric(" + strconv.FormatInt(int64(i), 10) + ")"
    23  	}
    24  	return _decomMetric_name[_decomMetric_index[i]:_decomMetric_index[i+1]]
    25  }