storage

package
v0.0.0-...-748351e Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(f func() error)

If a deferred function has any return values, they are discarded when the function completes.

Types

type DiskInfo

type DiskInfo struct {
	Name         string `json:"name,omitempty"`
	Model        string `json:"model,omitempty"` // Add Model
	Manufacturer string `json:"manufacturer,omitempty"`
	ProductName  string `json:"product_name,omitempty"`
	SerialNumber string `json:"serial_number,omitempty"`
	Size         string `json:"size,omitempty"` // Store size as a string cuz of megacli, e.g., "1.090 TB"
	Slot         string `json:"slot,omitempty"`
}

DiskInfo represents information about a storage device.

func GetStorageInfo

func GetStorageInfo() ([]DiskInfo, error)

GetStorageInfo fetches information about the storage devices, handling both simple disks and RAID setups.

Jump to

Keyboard shortcuts

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