Documentation ¶
Index ¶
Constants ¶
View Source
const (
PartType = "part"
)
Variables ¶
This section is empty.
Functions ¶
func ListAllBlockDevices ¶ added in v0.12.3
ListAllBlockDevices returns a list of all block devices converted from lsblk outputs
func NewAttributeParser ¶
func NewAttributeParser(disk *manager.DiskIdentify) *manager.AttributeParser
NewAttributeParser
func NewPartitionParser ¶
func NewPartitionParser(disk *manager.DiskIdentify) *manager.PartitionParser
NewPartitionParser
Types ¶
type AttributeParser ¶
type AttributeParser struct {
*manager.DiskIdentify
}
func (AttributeParser) ParseDiskAttr ¶
func (ap AttributeParser) ParseDiskAttr() manager.Attribute
ParseDiskAttr
type LSBlk ¶
type LSBlk struct {
*manager.DiskIdentify
}
func (LSBlk) ParsePartitionInfo ¶
func (lsb LSBlk) ParsePartitionInfo() []manager.PartitionInfo
ParsePartitionInfo
Click to show internal directories.
Click to hide internal directories.