procfs

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultProcRoot = "/proc"
)

Variables

This section is empty.

Functions

func FileKeyValue

func FileKeyValue(content, key string) string

func Proc

func Proc() string

Types

type ProcFileSystem

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

func NewProcFileSystem

func NewProcFileSystem(root string) *ProcFileSystem

func (*ProcFileSystem) Contents

func (p *ProcFileSystem) Contents(file string) (string, error)

func (*ProcFileSystem) ContentsPID

func (p *ProcFileSystem) ContentsPID(pid int64, file string) (string, error)

func (*ProcFileSystem) Dir

func (p *ProcFileSystem) Dir(dir string) ([]fs.FileInfo, error)

func (*ProcFileSystem) DirPID

func (p *ProcFileSystem) DirPID(pid int64, dir string) ([]fs.FileInfo, error)
func (p *ProcFileSystem) Readlink(file string) (string, error)

func (*ProcFileSystem) ReadlinkPID

func (p *ProcFileSystem) ReadlinkPID(pid int64, file string) (string, error)

Jump to

Keyboard shortcuts

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