Help us shape the future of Go! Take the 2026 Go Developer Survey

cooker

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookResult

type CookResult struct {
	FileContents map[string]string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL