File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -74,8 +74,8 @@ func init() {
7474 }
7575}
7676
77- // getAvailableControllers get the available controllers.
78- func getAvailableControllers () ([]string , error ) {
77+ // AvailableControllers get string:bool map of all the available controllers.
78+ func AvailableControllers () ([]string , error ) {
7979 controllers := []string {}
8080 controllersFile := filepath .Join (cgroupRoot , "cgroup.controllers" )
8181
@@ -99,11 +99,6 @@ func getAvailableControllers() ([]string, error) {
9999 return controllers , nil
100100}
101101
102- // AvailableControllers get string:bool map of all the available controllers.
103- func AvailableControllers (exclude map [string ]controllerHandler ) ([]string , error ) {
104- return getAvailableControllers ()
105- }
106-
107102func getCgroupPathForCurrentProcess () (string , error ) {
108103 path := fmt .Sprintf ("/proc/%d/cgroup" , os .Getpid ())
109104 f , err := os .Open (path )
You can’t perform that action at this time.
0 commit comments