parttable

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrPartTableNotFound denotes partition table not found error.
	ErrPartTableNotFound = errors.New("partition table not found")

	// ErrCancelled denotes cancelled by context error.
	ErrCancelled = errors.New("cancelled by context")
)

Functions

This section is empty.

Types

type PartTable

type PartTable interface {
	UUID() string
	Type() string
	Partitions() map[int]*Partition
}

PartTable denotes partition table.

type PartType

type PartType int

PartType denotes partition type.

const (
	Primary PartType = iota + 1
	Extended
	Logical
)

Partition types.

func (PartType) String

func (pt PartType) String() string

type Partition

type Partition struct {
	Number int
	UUID   string
	Type   PartType
}

Partition denotes partition information.

Jump to

Keyboard shortcuts

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