1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
package cgroups
import (
"fmt"
rspec "github.com/opencontainers/runtime-spec/specs-go"
)
// CgroupV2 used for cgroupv2 validation
type CgroupV2 struct {
MountPath string
}
// GetBlockIOData gets cgroup blockio data
func GetBlockIOData(pid int, cgPath string) (*rspec.LinuxBlockIO, error) {
return nil, fmt.Errorf("unimplemented yet")
}
// GetCPUData gets cgroup cpus data
func GetCPUData(pid int, cgPath string) (*rspec.LinuxCPU, error) {
return nil, fmt.Errorf("unimplemented yet")
}
// GetDevicesData gets cgroup devices data
func GetDevicesData(pid int, cgPath string) ([]rspec.LinuxDeviceCgroup, error) {
return nil, fmt.Errorf("unimplemented yet")
}
// GetHugepageLimitData gets cgroup hugetlb data
func GetHugepageLimitData(pid int, cgPath string) ([]rspec.LinuxHugepageLimit, error) {
return nil, fmt.Errorf("unimplemented yet")
}
// GetMemoryData gets cgroup memory data
func (cg *CgroupV2) GetMemoryData(pid int, cgPath string) (*rspec.LinuxMemory, error) {
return nil, fmt.Errorf("unimplemented yet")
}
// GetNetworkData gets cgroup network data
func GetNetworkData(pid int, cgPath string) (*rspec.LinuxNetwork, error) {
return nil, fmt.Errorf("unimplemented yet")
}
// GetPidsData gets cgroup pid ints data
func GetPidsData(pid int, cgPath string) (*rspec.LinuxPids, error) {
return nil, fmt.Errorf("unimplemented yet")
}
|