package ps

Import Path
	github.com/carapace-sh/carapace/third_party/github.com/mitchellh/go-ps (on go.dev)

Dependency Relation
	imports 5 packages, and imported by one package

Involved Source Files ps provides an API for finding and listing processes in a platform-agnostic way. NOTE: If you're reading these docs online via GoDocs or some other system, you might only see the Unix docs. This project makes heavy use of platform-specific implementations. We recommend reading the source if you are interested. process_linux.go process_unix.go
Package-Level Type Names (total 2)
/* sort by: | */
Process is the generic interface that is implemented on every platform and provides common operations for processes. Executable name running this process. This is not a path to the executable. PPid is the parent process ID for this process. Pid is the process ID for this process. *UnixProcess func FindProcess(pid int) (Process, error) func Processes() ([]Process, error)
UnixProcess is an implementation of Process that contains Unix-specific fields and information. (*UnixProcess) Executable() string (*UnixProcess) PPid() int (*UnixProcess) Pid() int Refresh reloads all the data associated with this process. *UnixProcess : Process
Package-Level Functions (total 2)
FindProcess looks up a single process by pid. Process will be nil and error will be nil if a matching process is not found.
Processes returns all processes. This of course will be a point-in-time snapshot of when this method was called. Some operating systems don't provide snapshot capability of the process table, in which case the process table returned might contain ephemeral entities that happened to be running when this was called.