lsof

package module
v0.0.0-...-b3baf94 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: MIT Imports: 9 Imported by: 1

README

lsof

Pure go lsof for file handlers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(lines []Line)

Types

type Line

type Line struct {
	ProcStatus
	Stat
}

func ReadPID

func ReadPID(pid int) ([]Line, error)

type ProcStatus

type ProcStatus struct {
	PID  int
	PPID int
	Name string
	User *user.User
	UIDs [4]string
	GIDs [4]string
}

func ReadMap

func ReadMap(inode uint64) (*ProcStatus, error)

func (*ProcStatus) String

func (ps *ProcStatus) String() string

type Stat

type Stat struct {
	Ino  uint64
	Size int64
}

func GetStat

func GetStat(filePath string) (*Stat, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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