io

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IO

type IO struct {
}

IO contains the aggregrate IO information for the entire system.

func New

func New() *IO

New returns a new IO.

type ProcessFD

type ProcessFD map[string]string

ProcessFD is a map of the file descriptor number to the descriptor object that it is pointing to.

type ProcessIO

type ProcessIO struct {
	// Limits are the max limits either in time or size for the
	// following resources.
	Limits struct {
		OpenFiles int
		FileSize  int
		CPUTime   int
	}

	FD ProcessFD
}

func NewProcess

func NewProcess(proc procfs.Proc) *ProcessIO

NewProcess returns the file descriptors for a single Linux process.

Jump to

Keyboard shortcuts

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