Documentation ¶
Overview ¶
Package utils contains small utilities used by the imager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFiles ¶
func CopyFiles(printf func(string, ...any), instructions ...CopyInstruction) error
CopyFiles copies files according to the given instructions.
func CreateRawDisk ¶
CreateRawDisk creates a raw disk image of the specified size.
func SourceDateEpoch ¶
SourceDateEpoch returns parsed value of SOURCE_DATE_EPOCH.
Types ¶
type CopyInstruction ¶
CopyInstruction describes a file copy operation.
func SourceDestination ¶
func SourceDestination(src, dest string) CopyInstruction
SourceDestination returns a CopyInstruction that copies src to dest.
Click to show internal directories.
Click to hide internal directories.