hardware
Last updated
Last updated
Last updated: 2025-04-24 01:05:34.149213 File source:
The hardware package is responsible for handling the hardware related functionalities of the DMS.
Here is quick overview of the contents of this package:
GetMachineResources()
signature: GetMachineResources() (types.MachineResources, error)
input: None
output: types.MachineResources
output(error): error
GetCPU()
signature: GetCPU() (types.CPU, error)
input: None
output: types.CPU
output(error): error
GetRAM()
signature: GetRAM() (types.RAM, error)
input: None
output: types.RAM
output(error): error
GetDisk()
signature: GetDisk() (types.Disk, error)
input: None
output: types.Disk
output(error): error
The tests can be found in the *_test.go
files in the respective packages.
: This package contains the functionality related to the CPU of the device.
: This file contains the functionality related to the RAM.
: This file contains the functionality related to the Disk.
: This package contains the functionality related to the GPU of the device.
The hardware types can be found in the package.