type BlockIODevice … type WeightDevice … // NewWeightDevice returns a configured WeightDevice pointer func NewWeightDevice(major, minor int64, weight, leafWeight uint16) *WeightDevice { … } // WeightString formats the struct to be writable to the cgroup specific file func (wd *WeightDevice) WeightString() string { … } // LeafWeightString formats the struct to be writable to the cgroup specific file func (wd *WeightDevice) LeafWeightString() string { … } type ThrottleDevice … // NewThrottleDevice returns a configured ThrottleDevice pointer func NewThrottleDevice(major, minor int64, rate uint64) *ThrottleDevice { … } // String formats the struct to be writable to the cgroup specific file func (td *ThrottleDevice) String() string { … } // StringName formats the struct to be writable to the cgroup specific file func (td *ThrottleDevice) StringName(name string) string { … }