system

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKernelData

func GetKernelData(executor utils.CmdExecutor) (model.Kernel, error)

GetKernelData retrieves kernel information from the system using the `uname` command.

func GetLocaleData

func GetLocaleData(executor utils.CmdExecutor) (model.Locale, error)

GetLocaleData retrieves locale information from the system using the `locale` command.

func GetReleaseData

func GetReleaseData(executor utils.CmdExecutor) (model.Release, error)

GetReleaseData retrieves release information from the system using the `/etc/os-release` file.

func GetSerialNumber

func GetSerialNumber(executor utils.CmdExecutor) (string, error)

GetSerialNumber retrieves the system's serial number using the `dmidecode` command.

func GetSystemUUID

func GetSystemUUID(executor utils.CmdExecutor) (string, error)

GetSystemUUID retrieves the system's UUID using the `dmidecode` command.

func GetTimezone

func GetTimezone(executor utils.CmdExecutor) (string, error)

GetTimezone retrieves the system's timezone using the `date` command.

func GetUptimeData

func GetUptimeData(executor utils.CmdExecutor) (float64, error)

GetUptimeData retrieves the system uptime from `/proc/uptime`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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