mirror of
https://github.com/docker/cli.git
synced 2026-01-22 03:22:01 +03:00
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com> Upstream-commit: 7acea2a243d25c061d12a2a2f8bbd4e5955a85f4 Component: engine
22 lines
389 B
Go
22 lines
389 B
Go
package cgroups
|
|
|
|
import "path/filepath"
|
|
|
|
func NewPerfEvent(root string) *PerfEventController {
|
|
return &PerfEventController{
|
|
root: filepath.Join(root, string(PerfEvent)),
|
|
}
|
|
}
|
|
|
|
type PerfEventController struct {
|
|
root string
|
|
}
|
|
|
|
func (p *PerfEventController) Name() Name {
|
|
return PerfEvent
|
|
}
|
|
|
|
func (p *PerfEventController) Path(path string) string {
|
|
return filepath.Join(p.root, path)
|
|
}
|