kernel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package kernel downloads and caches guest kernels, verifying their SHA-256 when given.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir string
	Logger  *slog.Logger
}

Config configures a Manager.

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager caches kernel binaries on local disk, fetching each on first use.

func NewManager

func NewManager(cfg Config) (*Manager, error)

NewManager creates a kernel Manager.

func (*Manager) Delete

func (m *Manager) Delete(id string) error

Delete removes a kernel's binary from local disk.

func (*Manager) Path

func (m *Manager) Path(ctx context.Context, k types.Kernel) (string, error)

Path returns the local path to a kernel's binary, downloading it if it is missing or its checksum does not match.

Jump to

Keyboard shortcuts

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