Documentation ¶
Index ¶
Constants ¶
View Source
const ( IgnitionAlignment = 2048 // 1MB in sectors DefaultAlignment = 4096 // 2MB in sectors )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Disk ¶
type Disk struct { ImageFile string Device string Alignment int Partitions Partitions }
func GetBaseDisk ¶
func GetBaseDisk() []Disk
func (Disk) CalculateImageSize ¶ added in v0.21.0
CalculateImageSize determines the size of the disk, assuming the partitions are all aligned and completely fill the disk.
func (Disk) SetOffsets ¶ added in v0.21.0
func (d Disk) SetOffsets()
SetOffsets sets the starting offsets for all of the partitions on the disk, according to its alignment.
type Partitions ¶
type Partitions []*Partition
func (Partitions) AddDirectories ¶
func (ps Partitions) AddDirectories(label string, ds []Directory)
func (Partitions) AddFiles ¶
func (ps Partitions) AddFiles(label string, fs []File)
func (Partitions) AddLinks ¶
func (ps Partitions) AddLinks(label string, ls []Link)
func (Partitions) AddRemovedNodes ¶
func (ps Partitions) AddRemovedNodes(label string, ns []Node)
func (Partitions) GetPartition ¶
func (ps Partitions) GetPartition(label string) *Partition
type Test ¶
type Test struct { Name string In []Disk Out []Disk MntDevices []MntDevice OEMLookasideFiles []File SystemDirFiles []File Config string ConfigMinVersion string ConfigShouldBeBad bool }
func DeepCopy ¶ added in v0.27.0
Deep copy Test struct fields In, Out, MntDevices, OEMLookasideFiles, SystemDirFiles so each BB test with identical Test structs have their own independent Test copies
func (*Test) ReplaceAllUUIDVars ¶ added in v0.27.0
Replace all UUID variables (format $uuid<num>) in configs and partitions with an UUID
func (*Test) ReplaceAllVersionVars ¶ added in v0.27.0
Replace Version variable (format $version) in configs with ConfigMinVersion Updates the old config version (oldVersion) with a new one (newVersion)
Click to show internal directories.
Click to hide internal directories.