partition

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package partition provides ability to work with individual partitions. All useful implementations are subpackages of this package, e.g. github.com/dave/diskfs/gpt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table interface {
	Type() string
	Write(util.File, int64) error
	GetPartitionSize(int) (int64, error)
	GetPartitionStart(int) (int64, error)
	ReadPartitionContents(int, util.File, io.Writer) (int64, error)
	WritePartitionContents(int, util.File, io.Reader) (uint64, error)
}

Table reference to a partitioning table on disk

func Read

func Read(f util.File, logicalBlocksize, physicalBlocksize int) (Table, error)

Read read a partition table from a disk

Directories

Path Synopsis
Package gpt provides an interface to GUID Partition Table (GPT) partitioned disks.
Package gpt provides an interface to GUID Partition Table (GPT) partitioned disks.
Package mbr provides an interface to Master Boot Record (MBR) partitioned disks.
Package mbr provides an interface to Master Boot Record (MBR) partitioned disks.

Jump to

Keyboard shortcuts

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