Versions in this module Expand all Collapse all v0 v0.1.0 Feb 3, 2016 Changes in this version + func EnterPid(cgroupPaths map[string]string, pid int) error — linux/amd64 + func FindCgroupMountpoint(subsystem string) (string, error) — linux/amd64 + func FindCgroupMountpointDir() (string, error) — linux/amd64 + func GetAllSubsystems() ([]string, error) — linux/amd64 + func GetHugePageSize() ([]string, error) — linux/amd64 + func GetInitCgroupDir(subsystem string) (string, error) — linux/amd64 + func GetThisCgroupDir(subsystem string) (string, error) — linux/amd64 + func IsNotFound(err error) bool — linux/amd64 + func NewNotFoundError(sub string) error — linux/amd64 + func ParseCgroupFile(subsystem string, r io.Reader) (string, error) — linux/amd64 + func PathExists(path string) bool — linux/amd64 + func ReadProcsFile(dir string) ([]int, error) — linux/amd64 + func RemovePaths(paths map[string]string) (err error) — linux/amd64 + type BlkioStatEntry struct — linux/amd64 + Major uint64 + Minor uint64 + Op string + Value uint64 + type BlkioStats struct — linux/amd64 + IoMergedRecursive []BlkioStatEntry + IoQueuedRecursive []BlkioStatEntry + IoServiceBytesRecursive []BlkioStatEntry + IoServiceTimeRecursive []BlkioStatEntry + IoServicedRecursive []BlkioStatEntry + IoTimeRecursive []BlkioStatEntry + IoWaitTimeRecursive []BlkioStatEntry + SectorsRecursive []BlkioStatEntry + type CpuStats struct — linux/amd64 + CpuUsage CpuUsage + ThrottlingData ThrottlingData + type CpuUsage struct — linux/amd64 + PercpuUsage []uint64 + TotalUsage uint64 + UsageInKernelmode uint64 + UsageInUsermode uint64 + type HugetlbStats struct — linux/amd64 + Failcnt uint64 + MaxUsage uint64 + Usage uint64 + type Manager interface — linux/amd64 + Apply func(pid int) error + Destroy func() error + Freeze func(state configs.FreezerState) error + GetPaths func() map[string]string + GetPids func() ([]int, error) + GetStats func() (*Stats, error) + Set func(container *configs.Config) error + type MemoryData struct — linux/amd64 + Failcnt uint64 + MaxUsage uint64 + Usage uint64 + type MemoryStats struct — linux/amd64 + Cache uint64 + KernelUsage MemoryData + Stats map[string]uint64 + SwapUsage MemoryData + Usage MemoryData + type Mount struct — linux/amd64 + Mountpoint string + Subsystems []string + func GetCgroupMounts() ([]Mount, error) + func (m Mount) GetThisCgroupDir() (string, error) + type NotFoundError struct — linux/amd64 + Subsystem string + func (e *NotFoundError) Error() string + type Stats struct — linux/amd64 + BlkioStats BlkioStats + CpuStats CpuStats + HugetlbStats map[string]HugetlbStats + MemoryStats MemoryStats + func NewStats() *Stats + type ThrottlingData struct — linux/amd64 + Periods uint64 + ThrottledPeriods uint64 + ThrottledTime uint64