Documentation ¶
Index ¶
- Constants
- func FileKeyValue(content, key string) string
- func Proc() string
- type ProcFileSystem
- func (p *ProcFileSystem) Contents(file string) (string, error)
- func (p *ProcFileSystem) ContentsPID(pid int64, file string) (string, error)
- func (p *ProcFileSystem) Dir(dir string) ([]fs.FileInfo, error)
- func (p *ProcFileSystem) DirPID(pid int64, dir string) ([]fs.FileInfo, error)
- func (p *ProcFileSystem) Readlink(file string) (string, error)
- func (p *ProcFileSystem) ReadlinkPID(pid int64, file string) (string, error)
Constants ¶
View Source
const (
DefaultProcRoot = "/proc"
)
Variables ¶
This section is empty.
Functions ¶
func FileKeyValue ¶
Types ¶
type ProcFileSystem ¶
type ProcFileSystem struct {
// contains filtered or unexported fields
}
func NewProcFileSystem ¶
func NewProcFileSystem(root string) *ProcFileSystem
func (*ProcFileSystem) ContentsPID ¶
func (p *ProcFileSystem) ContentsPID(pid int64, file string) (string, error)
func (*ProcFileSystem) ReadlinkPID ¶
func (p *ProcFileSystem) ReadlinkPID(pid int64, file string) (string, error)
Click to show internal directories.
Click to hide internal directories.