Documentation
¶
Index ¶
- func GetKernelData(executor utils.CmdExecutor) (model.Kernel, error)
- func GetLocaleData(executor utils.CmdExecutor) (model.Locale, error)
- func GetReleaseData(executor utils.CmdExecutor) (model.Release, error)
- func GetSerialNumber(executor utils.CmdExecutor) (string, error)
- func GetSystemUUID(executor utils.CmdExecutor) (string, error)
- func GetTimezone(executor utils.CmdExecutor) (string, error)
- func GetUptimeData(executor utils.CmdExecutor) (float64, error)
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.
Click to show internal directories.
Click to hide internal directories.