Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPartitionPath ¶
Types ¶
type SfdiskDeviceInfo ¶
type SfdiskDeviceInfo struct { Paritiontable struct { Label string `json:"label"` Unit string `json:"unit"` SectorSize int `json:"sectorsize"` DevicePath string `json:"device"` LbaStart int `json:"firstlba"` LbaEnd int `json:"lastlba"` Partitions []SfdiskPartition `json:"partitions"` } `json:"partitiontable"` }
func GetDeviceInfo ¶
func GetDeviceInfo(devicePath string) (SfdiskDeviceInfo, error)
type SfdiskPartition ¶
type StorageDevice ¶
func GetStorageDevicesList ¶
func GetStorageDevicesList() ([]StorageDevice, error)
Click to show internal directories.
Click to hide internal directories.