github.com/opencontainers/runtime-tools@v0.9.0/cgroups/cgroups_v2.go (about)

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