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 Architecture

func Architecture() (string, error)

func IsContainerized

func IsContainerized() (bool, error)

IsContainerized returns true if this process is containerized.

func KernelVersion

func KernelVersion() (string, error)

func MachineID

func MachineID() (string, error)

func MachineIDHostfs

func MachineIDHostfs(hostfs string) (string, error)

func NativeArchitecture

func NativeArchitecture() (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()

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.