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 Architecture() (string, error)
- func IsContainerized() (bool, error)
- func KernelVersion() (string, error)
- func MachineID() (string, error)
- func MachineIDHostfs(hostfs string) (string, error)
- func NativeArchitecture() (string, error)
- func OperatingSystem() (*types.OSInfo, error)
- type SeccompMode
Functions ¶
func Architecture ¶
func IsContainerized ¶
IsContainerized returns true if this process is containerized.
func KernelVersion ¶
func MachineID ¶
func MachineIDHostfs ¶
func NativeArchitecture ¶
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()
Types ¶
type SeccompMode ¶
type SeccompMode uint8
const ( SeccompModeDisabled SeccompMode = iota SeccompModeStrict SeccompModeFilter )
func (SeccompMode) String ¶
func (m SeccompMode) String() string
Source Files ¶
arch_linux.go boottime_linux.go capabilities_linux.go container.go doc.go host_linux.go kernel_linux.go machineid.go memory_linux.go os.go process_linux.go procnet.go seccomp_linux.go util.go vmstat.go
- Version
- v1.15.2
- Published
- Mar 25, 2025
- Platform
- linux/amd64
- Imports
- 18 packages
- Last checked
- 4 hours ago –
Tools for package owners.