mbr

package
v0.0.0-...-63c3a42 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TABLE_TYPE_AIX
	TABLE_TYPE_AMIGA
	TABLE_TYPE_BSD
	TABLE_TYPE_DVH
	TABLE_TYPE_GPT
	TABLE_TYPE_LOOP
	TABLE_TYPE_MAC
	TABLE_TYPE_MSDOS
	TABLE_TYPE_PC98
	TABLE_TYPE_SUN
)

Variables

This section is empty.

Functions

func WriteDefault

func WriteDefault(filename string, tableType TableType) error

Types

type Mbr

type Mbr struct {
	// contains filtered or unexported fields
}

func Decode

func Decode(file *os.File) (*Mbr, error)

func (*Mbr) GetNumPartitions

func (mbr *Mbr) GetNumPartitions() uint

func (*Mbr) GetPartitionOffset

func (mbr *Mbr) GetPartitionOffset(index uint) uint64

func (*Mbr) GetPartitionSize

func (mbr *Mbr) GetPartitionSize(index uint) uint64

type TableType

type TableType uint

func (*TableType) Set

func (tt *TableType) Set(value string) error

func (TableType) String

func (tt TableType) String() string

Jump to

Keyboard shortcuts

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