Versions in this module Expand all Collapse all v0 v0.1.1 Sep 7, 2024 Changes in this version + type BlockDevice struct + CryptoBackingDevice *string + CryptoClosingDevice string + CryptoRootDevice string + CryptoRootDrive *Drive + Device *string + DeviceNumber *uint64 + Drive *Drive + DriveId string + DriveModel string + DriveRevision string + DriveSerial string + DriveVendor string + Encrypted *Encrypted + Filesystem *Filesystem + HintAuto *bool + HintIconName *string + HintIgnore *bool + HintName *string + HintPartitionable *bool + HintSymbolicIconName *string + HintSystem *bool + Id *string + IdLabel *string + IdType *string + IdUUID *string + IdUsage *string + IdVersion *string + ObjectPath string + Partition *Partition + PreferredDevice *string + PreferredSize *uint64 + ReadOnly *bool + Size *uint64 + Symlinks *[]string + UserspaceMountOptions *[]string + type BlockMap struct + BlockMap map[string]*BlockDevice + func (bm *BlockMap) Filter(blocks []*BlockDevice, minImportance uint) ([]*BlockDevice, error) + func (bm *BlockMap) Sort() []*BlockDevice + type Conn struct + func Connect() (*Conn, error) + func (c *Conn) BlockDevices() (*BlockMap, error) + type Drive struct + CanPowerOff *bool + ConnectionBus *string + Ejectable *bool + Id *string + Media *string + MediaAvailable *bool + MediaChangeDetected *bool + MediaCompatibility *[]string + MediaRemovable *bool + Model *string + Optical *bool + OpticalBlank *bool + OpticalNumAudioTracks *uint32 + OpticalNumDataTracks *uint32 + OpticalNumSessions *uint32 + OpticalNumTracks *uint32 + Removable *bool + Revision *string + RotationRate *int32 + Seat *string + Serial *string + SiblingId *string + Size *uint64 + SortKey *string + TimeDetected *uint64 + TimeMediaDetected *uint64 + Vendor *string + WWN *string + type Encrypted struct + CleartextDevice *string + HintEncryptionType *string + MetadataSize *uint64 + type Filesystem struct + MountPoints *[]string + Size *uint64 + type Partition struct + Flags *uint64 + IsContained *bool + IsContainer *bool + Name *string + Number *uint32 + Offset *uint64 + Size *uint64 + Type *string + UUID *string