cgroups_manager

package
v0.0.0-...-9038be0 Latest Latest
Warning

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

Go to latest
Published: May 29, 2015 License: Apache-2.0 Imports: 5 Imported by: 0

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 CgroupsManager

type CgroupsManager interface {
	Set(subsystem, name, value string) error
	Get(subsystem, name string) (string, error)
	SubsystemPath(subsystem 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) Get

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

func (*ContainerCgroupsManager) Set

func (m *ContainerCgroupsManager) Set(subsystem, name, value 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