package linux

import "github.com/elastic/go-sysinfo/providers/linux"

Package linux implements the HostProvider and ProcessProvider interfaces for providing information about Linux.

Index

Functions

func IsContainerized

func IsContainerized() (bool, error)

IsContainerized returns true if this process is containerized.

func MachineID

func MachineID() (string, error)

func MachineIDHostfs

func MachineIDHostfs(hostfs string) (string, error)

func OperatingSystem

func OperatingSystem() (*types.OSInfo, error)

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.2
Published
Mar 25, 2025
Platform
js/wasm
Imports
11 packages
Last checked
4 hours ago

Tools for package owners.