system

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KernelModules

func KernelModules(v Vendor) []string

KernelModules returns vendor-specific kernel modules to load.

Types

type Vendor

type Vendor string

Vendor represents a known hardware vendor.

const (
	VendorHPE        Vendor = "HPE"
	VendorLenovo     Vendor = "Lenovo"
	VendorDell       Vendor = "Dell Inc."
	VendorSupermicro Vendor = "Supermicro"
	VendorGeneric    Vendor = "Generic"
)

Supported hardware vendors.

func DetectVendor

func DetectVendor() Vendor

DetectVendor reads the system vendor from DMI/SMBIOS sysfs data.

func ParseVendor

func ParseVendor(raw string) Vendor

ParseVendor maps a raw DMI sys_vendor string to a known Vendor.

Jump to

Keyboard shortcuts

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