linux

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 18 Imported by: 72

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

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 added in v1.14.1

func MachineIDHostfs(hostfs string) (string, error)

func NativeArchitecture added in v1.13.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL