cgroups_manager

package
v0.333.2-candidate Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: Apache-2.0 Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CgroupReader

type CgroupReader interface {
	CgroupNode(subsytem string) (string, error)
}

type ContainerCgroupsManager

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

func New

func New(cgroupsPath, containerID string, cgroupReader CgroupReader) *ContainerCgroupsManager

func (*ContainerCgroupsManager) Add

func (m *ContainerCgroupsManager) Add(pid int, subsystems ...string) error

func (*ContainerCgroupsManager) Get

func (m *ContainerCgroupsManager) Get(subsystem, name string) (string, error)

func (*ContainerCgroupsManager) Set

func (m *ContainerCgroupsManager) Set(subsystem, name, value string) error

func (*ContainerCgroupsManager) Setup

func (m *ContainerCgroupsManager) Setup(subsystems ...string) error

func (*ContainerCgroupsManager) SubsystemPath

func (m *ContainerCgroupsManager) SubsystemPath(subsystem string) (string, error)

type LinuxCgroupReader

type LinuxCgroupReader struct {
	Path string
	// contains filtered or unexported fields
}

func (*LinuxCgroupReader) CgroupNode

func (c *LinuxCgroupReader) CgroupNode(subsystem string) (string, error)

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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