Versions in this module Expand all Collapse all v0 v0.2.0 Oct 27, 2015 v0.1.9 Sep 22, 2015 Changes in this version + var ErrCgroupNotAvailable = errors.New("cgroup not available") + var ErrDockerNotAvailable = errors.New("docker not available") + func CgroupCPU(containerid string, base string) (*cpu.CPUTimesStat, error) + func CgroupCPUDocker(containerid string) (*cpu.CPUTimesStat, error) + func GetDockerIDList() ([]string, error) + type CgroupMemStat struct + ActiveAnon uint64 + ActiveFile uint64 + Cache uint64 + ContainerID string + HierarchicalMemoryLimit uint64 + InactiveAnon uint64 + InactiveFile uint64 + MappedFile uint64 + Pgfault uint64 + Pgmajfault uint64 + Pgpgin uint64 + Pgpgout uint64 + RSS uint64 + RSSHuge uint64 + TotalActiveAnon uint64 + TotalActiveFile uint64 + TotalCache uint64 + TotalInactiveAnon uint64 + TotalInactiveFile uint64 + TotalMappedFile uint64 + TotalPgFault uint64 + TotalPgMajFault uint64 + TotalPgpgIn uint64 + TotalPgpgOut uint64 + TotalRSS uint64 + TotalRSSHuge uint64 + TotalUnevictable uint64 + Unevictable uint64 + func CgroupMem(containerid string, base string) (*CgroupMemStat, error) + func CgroupMemDocker(containerid string) (*CgroupMemStat, error) + func (m CgroupMemStat) String() string