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
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)
Click to show internal directories.
Click to hide internal directories.