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 OperatingSystem

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

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 seccomp_linux.go util.go

Version
v1.0.2
Published
Jul 9, 2019
Platform
linux/amd64
Imports
17 packages
Last checked
4 hours ago

Tools for package owners.