mirror of https://github.com/minio/minio.git
				
				
				
			
		
			
				
	
	
		
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
			
		
		
	
	
			41 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Go
		
	
	
	
| // Code generated by "stringer -type=osMetric -trimprefix=osMetric os-instrumented.go"; DO NOT EDIT.
 | |
| 
 | |
| package cmd
 | |
| 
 | |
| import "strconv"
 | |
| 
 | |
| func _() {
 | |
| 	// An "invalid array index" compiler error signifies that the constant values have changed.
 | |
| 	// Re-run the stringer command to generate them again.
 | |
| 	var x [1]struct{}
 | |
| 	_ = x[osMetricRemoveAll-0]
 | |
| 	_ = x[osMetricMkdirAll-1]
 | |
| 	_ = x[osMetricMkdir-2]
 | |
| 	_ = x[osMetricRename-3]
 | |
| 	_ = x[osMetricOpenFileW-4]
 | |
| 	_ = x[osMetricOpenFileR-5]
 | |
| 	_ = x[osMetricOpen-6]
 | |
| 	_ = x[osMetricOpenFileDirectIO-7]
 | |
| 	_ = x[osMetricLstat-8]
 | |
| 	_ = x[osMetricRemove-9]
 | |
| 	_ = x[osMetricStat-10]
 | |
| 	_ = x[osMetricAccess-11]
 | |
| 	_ = x[osMetricCreate-12]
 | |
| 	_ = x[osMetricReadDirent-13]
 | |
| 	_ = x[osMetricFdatasync-14]
 | |
| 	_ = x[osMetricSync-15]
 | |
| 	_ = x[osMetricRename2-16]
 | |
| 	_ = x[osMetricLast-17]
 | |
| }
 | |
| 
 | |
| const _osMetric_name = "RemoveAllMkdirAllMkdirRenameOpenFileWOpenFileROpenOpenFileDirectIOLstatRemoveStatAccessCreateReadDirentFdatasyncSyncRename2Last"
 | |
| 
 | |
| var _osMetric_index = [...]uint8{0, 9, 17, 22, 28, 37, 46, 50, 66, 71, 77, 81, 87, 93, 103, 112, 116, 123, 127}
 | |
| 
 | |
| func (i osMetric) String() string {
 | |
| 	if i >= osMetric(len(_osMetric_index)-1) {
 | |
| 		return "osMetric(" + strconv.FormatInt(int64(i), 10) + ")"
 | |
| 	}
 | |
| 	return _osMetric_name[_osMetric_index[i]:_osMetric_index[i+1]]
 | |
| }
 |