lsblk

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PartType = "part"
)

Variables

This section is empty.

Functions

func ListAllBlockDevices added in v0.12.3

func ListAllBlockDevices() ([]manager.Attribute, error)

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) HasPartition

func (lsb LSBlk) HasPartition() bool

HasPartition

func (LSBlk) ParsePartitionInfo

func (lsb LSBlk) ParsePartitionInfo() []manager.PartitionInfo

ParsePartitionInfo

Jump to

Keyboard shortcuts

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