libcontainer

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2015 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiskStatsCopy

func DiskStatsCopy(blkio_stats []cgroups.BlkioStatEntry) (stat []info.PerDiskStats)

func DockerStateDir added in v0.16.0

func DockerStateDir(dockerRoot string) string

func Exists added in v0.16.0

func Exists(dockerRoot, dockerRun, containerID string) bool

Gets whether the specified container exists.

func GetStats

func GetStats(cgroupManager cgroups.Manager, networkInterfaces []string) (*info.ContainerStats, error)

Get cgroup and networking stats of the specified container

func ReadConfig added in v0.16.0

func ReadConfig(dockerRoot, dockerRun, containerID string) (*configs.Config, error)

TODO(vmarmol): Deprecate over time as old Dockers are phased out.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL