Documentation
¶
Overview ¶
Package rootfs builds root filesystems for VMs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder builds rootfs images for microVMs from OCI layers.
func (*Builder) BuildMinimalRootfs ¶
BuildMinimalRootfs builds a minimal rootfs with just the OCI layers and the doki-init binary injected. Searches for doki-init-rust first, falls back to doki-init (Go).
type KernelManager ¶
type KernelManager struct {
// contains filtered or unexported fields
}
KernelManager manages kernel images for microVMs.
func NewKernelManager ¶
func NewKernelManager(kernelDir string) *KernelManager
NewKernelManager creates a kernel manager.
func (*KernelManager) GetKernelPath ¶
func (k *KernelManager) GetKernelPath() (string, error)
GetKernelPath returns the path to the kernel for the current architecture.
func (*KernelManager) HasKernel ¶
func (k *KernelManager) HasKernel() bool
HasKernel checks if a kernel is available.
Click to show internal directories.
Click to hide internal directories.