libcontainer

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

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 DiskStatsCopy0

func DiskStatsCopy0(major, minor uint64) *info.PerDiskStats

func DiskStatsCopy1

func DiskStatsCopy1(disk_stat map[DiskKey]*info.PerDiskStats) []info.PerDiskStats

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 GetAllCgroupSubsystems added in v0.33.0

func GetAllCgroupSubsystems() (CgroupSubsystems, error)

Get information about all the cgroup subsystems.

func GetCgroupSubsystems

func GetCgroupSubsystems(includedMetrics container.MetricSet) (CgroupSubsystems, error)

Get information about the cgroup subsystems those we want

type DiskKey

type DiskKey struct {
	Major uint64
	Minor uint64
}

type Handler added in v0.30.0

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler added in v0.30.0

func NewHandler(cgroupManager cgroups.Manager, rootFs string, pid int, includedMetrics container.MetricSet) *Handler

func (*Handler) GetProcesses added in v0.30.0

func (h *Handler) GetProcesses() ([]int, error)

func (*Handler) GetStats added in v0.30.0

func (h *Handler) GetStats() (*info.ContainerStats, error)

Get cgroup and networking stats of the specified container

Jump to

Keyboard shortcuts

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