package sysinfo
import "github.com/elastic/go-sysinfo"
Index ¶
- func Go() types.GoInfo
- func Host() (types.Host, error)
- func Process(pid int) (types.Process, error)
- func Processes() ([]types.Process, error)
- func Self() (types.Process, error)
Functions ¶
func Go ¶
Go returns information about the Go runtime.
func Host ¶
Host returns information about host on which this process is running. If host information collection is not implemented for this platform then types.ErrNotImplemented is returned. On Darwin (macOS) a types.ErrNotImplemented is returned with cgo disabled.
func Process ¶
Process returns a types.Process object representing the process associated with the given PID. The types.Process object can be used to query information about the process. If process information collection is not implemented for this platform then types.ErrNotImplemented is returned.
func Processes ¶
Processes return a list of all processes. If process information collection is not implemented for this platform then types.ErrNotImplemented is returned.
func Self ¶
Self return a types.Process object representing this process. If process information collection is not implemented for this platform then types.ErrNotImplemented is returned.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal | |
providers | |
providers/aix | Package aix implements the HostProvider and ProcessProvider interfaces for providing information about IBM AIX on ppc64. |
providers/darwin | Package darwin implements the HostProvider and ProcessProvider interfaces for providing information about MacOS. |
providers/linux | Package linux implements the HostProvider and ProcessProvider interfaces for providing information about Linux. |
providers/shared | |
providers/windows | Package windows implements the HostProvider and ProcessProvider interfaces for providing information about Windows. |
types |
- Version
- v1.14.0
- Published
- Apr 5, 2024
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- now –
Tools for package owners.