fs

package
v0.11.2-0...-f37339c Latest Latest
Warning

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

Go to latest
Published: May 21, 2014 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Utility for testing cgroup operations.

Creates a mock of the cgroup filesystem for the duration of the test.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupportStat = errors.New("stats are not supported for subsystem")
	ErrNotValidFormat = errors.New("line is not a valid key value format")
)

Functions

func Apply

func Apply(c *cgroups.Cgroup, pid int) (cgroups.ActiveCgroup, error)

func GetStats

func GetStats(c *cgroups.Cgroup, subsystem string, pid int) (map[string]float64, error)

func NewCgroupTestUtil

func NewCgroupTestUtil(subsystem string, t *testing.T) *cgroupTestUtil

Creates a new test util for the specified subsystem

Types

This section is empty.

Jump to

Keyboard shortcuts

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