// Converts PartitionTable to osbuild.QEMUAssemblerOptions that encode
// the same partition table.
Converts PartitionTable to osbuild.QEMUAssemblerOptions that encode
the same partition table.
// Converts PartitionTable to osbuild . QEMUAssemblerOptions that encode // the same partition table .
func (pt PartitionTable) QEMUAssemblerOptions() osbuild.QEMUAssemblerOptions {
	var partitions []osbuild.QEMUPartition
	for _, p := range pt.Partitions {
		partitions = append(partitions, p.QEMUPartition())
	}
	return osbuild.QEMUAssemblerOptions{
		Size:       pt.Size,
		PTUUID:     pt.UUID,
		PTType:     pt.Type,
		Partitions: partitions,
	}
}
func ( pt PartitionTable ) QEMUAssemblerOptions ( ) osbuild . QEMUAssemblerOptions { var partitions [ ] osbuild . QEMUPartition for _ , p := range pt . Partitions { partitions = append ( partitions , p . QEMUPartition ( ) ) } return osbuild . QEMUAssemblerOptions { Size : pt . Size , PTUUID : pt . UUID , PTType : pt . Type , Partitions : partitions , } }
Converts PartitionTable to osbuild.QEMUAssemblerOptions that encode
the same partition table.
Converts PartitionTable to osbuild . QEMUAssemblerOptions that encode the same partition table .