Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
Install fetches the necessary data locations and copies or extracts to the target locations nolint: gocyclo
Types ¶
type Device ¶
type Device struct {
DataURLs []string
Label string
MountBase string
Name string
// This seems overkill to save partition table
// when we can get partition table from BlockDevice
// but we want to have a shared partition table for each
// device so we can properly append partitions and have
// an atomic write partition operation
PartitionTable table.PartitionTable
// This guy might be overkill but we can clean up later
// Made up of Name + part.No(), so maybe it's worth
// just storing part.No() and adding a method d.PartName()
PartitionName string
Size uint
BlockDevice *blockdevice.BlockDevice
Force bool
Test bool
}
Device represents a single partition.
func NewDevice ¶
NewDevice creates a Device with basic metadata. BlockDevice and PartitionTable need to be set outsite of this.
Click to show internal directories.
Click to hide internal directories.