Documentation
¶
Index ¶
- func DiskStatsCopy(blkio_stats []cgroups.BlkioStatEntry) (stat []info.PerDiskStats)
- func DiskStatsCopy0(major, minor uint64) *info.PerDiskStats
- func DiskStatsCopy1(disk_stat map[DiskKey]*info.PerDiskStats) []info.PerDiskStats
- func DockerStateDir(dockerRoot string) string
- func Exists(dockerRoot, dockerRun, containerID string) bool
- func GetProcesses(cgroupManager cgroups.Manager) ([]int, error)
- func GetStats(cgroupManager cgroups.Manager, rootFs string, pid int, ...) (*info.ContainerStats, error)
- func ReadConfig(dockerRoot, dockerRun, containerID string) (*configs.Config, error)
- type CgroupSubsystems
- type DiskKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiskStatsCopy ¶
func DiskStatsCopy(blkio_stats []cgroups.BlkioStatEntry) (stat []info.PerDiskStats)
func DiskStatsCopy0 ¶ added in v0.17.0
func DiskStatsCopy0(major, minor uint64) *info.PerDiskStats
func DiskStatsCopy1 ¶ added in v0.17.0
func DiskStatsCopy1(disk_stat map[DiskKey]*info.PerDiskStats) []info.PerDiskStats
func DockerStateDir ¶ added in v0.16.1
func GetProcesses ¶ added in v0.18.0
Types ¶
type CgroupSubsystems ¶
type CgroupSubsystems struct { // Cgroup subsystem mounts. // e.g.: "/sys/fs/cgroup/cpu" -> ["cpu", "cpuacct"] Mounts []cgroups.Mount // Cgroup subsystem to their mount location. // e.g.: "cpu" -> "/sys/fs/cgroup/cpu" MountPoints map[string]string }
func GetCgroupSubsystems ¶
func GetCgroupSubsystems() (CgroupSubsystems, error)
Get information about the cgroup subsystems.
Click to show internal directories.
Click to hide internal directories.