package linux
import "github.com/elastic/go-sysinfo/providers/linux"
Package linux implements the HostProvider and ProcessProvider interfaces for providing information about Linux.
Index ¶
- func IsContainerized() (bool, error)
- func MachineID() (string, error)
- func MachineIDHostfs(hostfs string) (string, error)
- func OperatingSystem() (*types.OSInfo, error)
Functions ¶
func IsContainerized ¶
IsContainerized returns true if this process is containerized.
func MachineID ¶
func MachineIDHostfs ¶
func OperatingSystem ¶
OperatingSystem returns OS info. This does not take an alternate hostfs. to get OS info from an alternate root path, use reader.os()
Source Files ¶
container.go doc.go machineid.go os.go procnet.go util.go vmstat.go
- Version
- v1.15.3 (latest)
- Published
- Mar 28, 2025
- Platform
- darwin/amd64
- Imports
- 11 packages
- Last checked
- 4 hours ago –
Tools for package owners.