mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-08-14 07:45:54 +08:00
15 lines
236 B
Go
15 lines
236 B
Go
package cgroups
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type IfPrioMap struct {
|
|
Interface string `json:"interface"`
|
|
Priority int64 `json:"priority"`
|
|
}
|
|
|
|
func (i *IfPrioMap) CgroupString() string {
|
|
return fmt.Sprintf("%s %d", i.Interface, i.Priority)
|
|
}
|