Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockDevice ¶
type BlockDevice struct {
ObjectPath string
Device *string
PreferredDevice *string
Symlinks *[]string
DeviceNumber *uint64
Id *string
Size *uint64
ReadOnly *bool
Drive *Drive
IdUsage *string
IdType *string
IdVersion *string
IdLabel *string
IdUUID *string
CryptoBackingDevice *string
HintPartitionable *bool
HintSystem *bool
HintIgnore *bool
HintAuto *bool
HintName *string
HintIconName *string
HintSymbolicIconName *string
UserspaceMountOptions *[]string
Partition *Partition
Filesystem *Filesystem
Encrypted *Encrypted
DriveVendor string
DriveModel string
DriveRevision string
DriveSerial string
DriveId string
PreferredSize *uint64
CryptoRootDrive *Drive
CryptoRootDevice string
CryptoClosingDevice string
}
type BlockMap ¶
type BlockMap struct {
BlockMap map[string]*BlockDevice
}
func (*BlockMap) Filter ¶
func (bm *BlockMap) Filter(blocks []*BlockDevice, minImportance uint) ([]*BlockDevice, error)
func (*BlockMap) Sort ¶
func (bm *BlockMap) Sort() []*BlockDevice
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) BlockDevices ¶
type Drive ¶
type Drive struct {
Vendor *string
Model *string
Revision *string
Serial *string
WWN *string
Id *string
Media *string
MediaCompatibility *[]string
MediaRemovable *bool
MediaAvailable *bool
MediaChangeDetected *bool
Size *uint64
TimeDetected *uint64
TimeMediaDetected *uint64
Optical *bool
OpticalBlank *bool
OpticalNumTracks *uint32
OpticalNumAudioTracks *uint32
OpticalNumDataTracks *uint32
OpticalNumSessions *uint32
RotationRate *int32
ConnectionBus *string
Seat *string
Removable *bool
Ejectable *bool
SortKey *string
CanPowerOff *bool
SiblingId *string
}
type Filesystem ¶
Click to show internal directories.
Click to hide internal directories.