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.
29 lines
799 B
29 lines
799 B
9 months ago
|
// Code generated by "stringer -type=Controller -linecomment"; DO NOT EDIT.
|
||
|
|
||
9 months ago
|
package cgroup
|
||
9 months ago
|
|
||
|
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[ControllerUndefined-0]
|
||
|
_ = x[ControllerPids-1]
|
||
|
_ = x[ControllerCPU-2]
|
||
|
_ = x[ControllerMemory-3]
|
||
|
_ = x[ControllerRdma-4]
|
||
|
_ = x[ControllerIo-5]
|
||
|
}
|
||
|
|
||
|
const _Controller_name = "undefinedpidscpumemoryrdmaio"
|
||
|
|
||
|
var _Controller_index = [...]uint8{0, 9, 13, 16, 22, 26, 28}
|
||
|
|
||
|
func (i Controller) String() string {
|
||
|
if i < 0 || i >= Controller(len(_Controller_index)-1) {
|
||
|
return "Controller(" + strconv.FormatInt(int64(i), 10) + ")"
|
||
|
}
|
||
|
return _Controller_name[_Controller_index[i]:_Controller_index[i+1]]
|
||
|
}
|