6 "github.com/opencontainers/runc/libcontainer/cgroups"
7 "github.com/opencontainers/runc/libcontainer/configs"
10 type NetPrioGroup struct {
13 func (s *NetPrioGroup) Name() string {
17 func (s *NetPrioGroup) Apply(d *cgroupData) error {
18 _, err := d.join("net_prio")
19 if err != nil && !cgroups.IsNotFound(err) {
25 func (s *NetPrioGroup) Set(path string, cgroup *configs.Cgroup) error {
26 for _, prioMap := range cgroup.Resources.NetPrioIfpriomap {
27 if err := writeFile(path, "net_prio.ifpriomap", prioMap.CgroupString()); err != nil {
35 func (s *NetPrioGroup) Remove(d *cgroupData) error {
36 return removePath(d.path("net_prio"))
39 func (s *NetPrioGroup) GetStats(path string, stats *cgroups.Stats) error {