Documentation ¶
Index ¶
- Variables
- func GetBlockIOData(pid int, cgPath string) (*rspec.LinuxBlockIO, error)
- func GetCPUData(pid int, cgPath string) (*rspec.LinuxCPU, error)
- func GetDevicesData(pid int, cgPath string) ([]rspec.LinuxDeviceCgroup, error)
- func GetHugepageLimitData(pid int, cgPath string) ([]rspec.LinuxHugepageLimit, error)
- func GetNetworkData(pid int, cgPath string) (*rspec.LinuxNetwork, error)
- func GetPidsData(pid int, cgPath string) (*rspec.LinuxPids, error)
- func GetSubsystemPath(pid int, subsystem string) (string, error)
- type Cgroup
- type CgroupV1
- func (cg *CgroupV1) GetBlockIOData(pid int, cgPath string) (*rspec.LinuxBlockIO, error)
- func (cg *CgroupV1) GetCPUData(pid int, cgPath string) (*rspec.LinuxCPU, error)
- func (cg *CgroupV1) GetDevicesData(pid int, cgPath string) ([]rspec.LinuxDeviceCgroup, error)
- func (cg *CgroupV1) GetHugepageLimitData(pid int, cgPath string) ([]rspec.LinuxHugepageLimit, error)
- func (cg *CgroupV1) GetMemoryData(pid int, cgPath string) (*rspec.LinuxMemory, error)
- func (cg *CgroupV1) GetNetworkData(pid int, cgPath string) (*rspec.LinuxNetwork, error)
- func (cg *CgroupV1) GetPidsData(pid int, cgPath string) (*rspec.LinuxPids, error)
- type CgroupV2
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AbsCgroupPath is absolute path for container's cgroup mount AbsCgroupPath = "/cgrouptest" // RelCgroupPath is relative path for container's cgroup mount RelCgroupPath = "testdir/cgrouptest/container" )
Functions ¶
func GetBlockIOData ¶
func GetBlockIOData(pid int, cgPath string) (*rspec.LinuxBlockIO, error)
GetBlockIOData gets cgroup blockio data
func GetCPUData ¶
GetCPUData gets cgroup cpus data
func GetDevicesData ¶
func GetDevicesData(pid int, cgPath string) ([]rspec.LinuxDeviceCgroup, error)
GetDevicesData gets cgroup devices data
func GetHugepageLimitData ¶
func GetHugepageLimitData(pid int, cgPath string) ([]rspec.LinuxHugepageLimit, error)
GetHugepageLimitData gets cgroup hugetlb data
func GetNetworkData ¶
func GetNetworkData(pid int, cgPath string) (*rspec.LinuxNetwork, error)
GetNetworkData gets cgroup network data
func GetPidsData ¶
GetPidsData gets cgroup pid ints data
Types ¶
type Cgroup ¶
type Cgroup interface { GetBlockIOData(pid int, cgPath string) (*rspec.LinuxBlockIO, error) GetCPUData(pid int, cgPath string) (*rspec.LinuxCPU, error) GetDevicesData(pid int, cgPath string) ([]rspec.LinuxDeviceCgroup, error) GetHugepageLimitData(pid int, cgPath string) ([]rspec.LinuxHugepageLimit, error) GetMemoryData(pid int, cgPath string) (*rspec.LinuxMemory, error) GetNetworkData(pid int, cgPath string) (*rspec.LinuxNetwork, error) GetPidsData(pid int, cgPath string) (*rspec.LinuxPids, error) }
Cgroup represents interfaces for cgroup validation
type CgroupV1 ¶
type CgroupV1 struct {
MountPath string
}
CgroupV1 used for cgroupv1 validation
func (*CgroupV1) GetBlockIOData ¶
GetBlockIOData gets cgroup blockio data
func (*CgroupV1) GetCPUData ¶
GetCPUData gets cgroup cpus data
func (*CgroupV1) GetDevicesData ¶
GetDevicesData gets cgroup devices data
func (*CgroupV1) GetHugepageLimitData ¶
func (cg *CgroupV1) GetHugepageLimitData(pid int, cgPath string) ([]rspec.LinuxHugepageLimit, error)
GetHugepageLimitData gets cgroup hugetlb data
func (*CgroupV1) GetMemoryData ¶
GetMemoryData gets cgroup memory data
func (*CgroupV1) GetNetworkData ¶
GetNetworkData gets cgroup network data
Click to show internal directories.
Click to hide internal directories.