io

package
v0.6.2 Latest Latest
Warning

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

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

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 on the process.x.
	Limits struct {
		// OpenFiles is the maximum number of files that this
		// process can open at a time.
		OpenFiles int
		// FileSize is the maximum file size that the process
		// can make.
		FileSize int
		// CPUTime is the amount of time that the CPU has to
		// run.
		CPUTime int
	}

	// FD is the file descriptors that the process currently has
	// open.
	FD ProcessFD
}

ProcessIO is kernel level IO information about the process. This can be used to debug various issues related to open files and kernel limits on the process IO.

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