github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/cmd/subtool/boostCpuLimit.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "github.com/Cloud-Foundations/Dominator/lib/log" 7 "github.com/Cloud-Foundations/Dominator/lib/srpc" 8 "github.com/Cloud-Foundations/Dominator/sub/client" 9 ) 10 11 func boostCpuLimitSubcommand(args []string, logger log.DebugLogger) error { 12 srpcClient := getSubClient(logger) 13 defer srpcClient.Close() 14 if err := boostCpuLimit(srpcClient); err != nil { 15 return fmt.Errorf("Error boosting CPU limit: %s", err) 16 } 17 return nil 18 } 19 20 func boostCpuLimit(srpcClient *srpc.Client) error { 21 return client.BoostCpuLimit(srpcClient) 22 }