mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
0fbfa1449d
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
15 lines
247 B
Go
15 lines
247 B
Go
package blkiodev
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// WeightDevice is a structure that hold device:weight pair
|
|
type WeightDevice struct {
|
|
Path string
|
|
Weight uint16
|
|
}
|
|
|
|
func (w *WeightDevice) String() string {
|
|
return fmt.Sprintf("%s:%d", w.Path, w.Weight)
|
|
}
|