disks

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadFilesystem = errors.New("filesystem is not of the correct type")
)
View Source
var (
	ErrBadSgdiskOutput = errors.New("sgdisk had unexpected output")
)

Functions

This section is empty.

Types

type PartitionList added in v0.26.0

type PartitionList []types.Partition

Allow sorting partitions (must be a stable sort) so partition number 0 happens last regardless of where it was in the list.

func (PartitionList) Len added in v0.26.0

func (p PartitionList) Len() int

func (PartitionList) Less added in v0.26.0

func (p PartitionList) Less(i, j int) bool

We only care about partitions with number 0 being considered the "largest" elements so they are processed last.

func (PartitionList) Swap added in v0.26.0

func (p PartitionList) Swap(i, j int)

Jump to

Keyboard shortcuts

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