Versions in this module Expand all Collapse all v1 v1.2.1 Jun 18, 2021 Changes in this version + const PartitionEntrySize + type Partition struct + Attributes uint64 + End uint64 + GUID string + Name string + Size uint64 + Start uint64 + Type Type + func (p *Partition) GetSize() int64 + func (p *Partition) GetStart() int64 + func (p *Partition) ReadContents(f util.File, out io.Writer) (int64, error) + func (p *Partition) WriteContents(f util.File, contents io.Reader) (uint64, error) + type Table struct + GUID string + LogicalSectorSize int + Partitions []*Partition + PhysicalSectorSize int + ProtectiveMBR bool + func Read(f util.File, logicalBlockSize, physicalBlockSize int) (*Table, error) + func (t *Table) Equal(t2 *Table) bool + func (t *Table) GetPartitions() []part.Partition + func (t *Table) Type() string + func (t *Table) Write(f util.File, size int64) error + type Type string + const BiosBoot + const EFISystemPartition + const LinuxDMCrypt + const LinuxFilesystem + const LinuxLUKS + const LinuxLVM + const LinuxRaid + const LinuxRootArm32 + const LinuxRootArm64 + const LinuxRootX86 + const LinuxRootX86_64 + const LinuxSwap + const MbrBoot + const MicrosoftBasicData + const MicrosoftLDMData + const MicrosoftLDMMetadata + const MicrosoftReserved + const MicrosoftWindowsRecovery + const Unused + const VMWareFilesystem