Versions in this module Expand all Collapse all v0 v0.12.0 Jun 6, 2014 Changes in this version + var ErrNotFound = errors.New("mountpoint not found") + func FindCgroupMountpoint(subsystem string) (string, error) + func GetInitCgroupDir(subsystem string) (string, error) + func GetThisCgroupDir(subsystem string) (string, error) + func ReadProcsFile(dir string) ([]int, error) + type ActiveCgroup interface + Cleanup func() error + type BlkioStatEntry struct + Major uint64 + Minor uint64 + Op string + Value uint64 + type BlkioStats struct + IoQueuedRecursive []BlkioStatEntry + IoServiceBytesRecursive []BlkioStatEntry + IoServicedRecursive []BlkioStatEntry + SectorsRecursive []BlkioStatEntry + type Cgroup struct + AllowAllDevices bool + AllowedDevices []*devices.Device + CpuPeriod int64 + CpuQuota int64 + CpuShares int64 + CpusetCpus string + Freezer FreezerState + Memory int64 + MemoryReservation int64 + MemorySwap int64 + Name string + Parent string + Slice string + type CpuStats struct + CpuUsage CpuUsage + ThrottlingData ThrottlingData + type CpuUsage struct + CurrentUsage uint64 + PercentUsage uint64 + PercpuUsage []uint64 + UsageInKernelmode uint64 + UsageInUsermode uint64 + type FreezerState string + const Frozen + const Thawed + const Undefined + type FreezerStats struct + ParentState string + SelfState string + type MemoryStats struct + Failcnt uint64 + MaxUsage uint64 + Stats map[string]uint64 + Usage uint64 + type Stats struct + BlkioStats BlkioStats + CpuStats CpuStats + FreezerStats FreezerStats + MemoryStats MemoryStats + func NewStats() *Stats + type ThrottlingData struct + Periods uint64 + ThrottledPeriods uint64 + ThrottledTime uint64