Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CookResult ¶
CookResult holds the in-memory contents of all written quadlet files, keyed by their destination path.
type Cooker ¶
type Cooker struct {
TempDir string
TargetDir string
ProjectName string
IsRootless bool
PortOffset int
SELinuxEnabled bool
}
Cooker handles the post-processing of Quadlet files.
func NewCooker ¶
func NewCooker(tempDir, targetDir, projectName string, isRootless bool, portOffset int, selinuxEnabled bool) *Cooker
NewCooker creates a new cooker instance.
func (*Cooker) Cook ¶
func (c *Cooker) Cook() (*CookResult, error)
Cook processes all files in the temp directory, renames them, and moves them to target. It returns the in-memory contents of all written files to avoid redundant disk I/O.
Click to show internal directories.
Click to hide internal directories.