mirror of
https://github.com/containers/podman.git
synced 2025-11-29 17:48:05 +08:00
vendor: update c/common
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
14
vendor/github.com/opencontainers/cgroups/config_ifprio_map.go
generated
vendored
Normal file
14
vendor/github.com/opencontainers/cgroups/config_ifprio_map.go
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user