disks

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 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

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

func (p PartitionList) Len() int

func (PartitionList) Less

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

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