...
1 package fs
2
3 import (
4 "github.com/opencontainers/runc/libcontainer/cgroups"
5 "github.com/opencontainers/runc/libcontainer/configs"
6 )
7
8 type NameGroup struct {
9 GroupName string
10 Join bool
11 }
12
13 func (s *NameGroup) Name() string {
14 return s.GroupName
15 }
16
17 func (s *NameGroup) Apply(path string, _ *configs.Resources, pid int) error {
18 if s.Join {
19
20 _ = apply(path, pid)
21 }
22 return nil
23 }
24
25 func (s *NameGroup) Set(_ string, _ *configs.Resources) error {
26 return nil
27 }
28
29 func (s *NameGroup) GetStats(path string, stats *cgroups.Stats) error {
30 return nil
31 }
32
View as plain text