kernel

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package kernel resolves, downloads, and verifies the guest kernels that microagent boots, backing "microagent kernel".

Index

Constants

This section is empty.

Variables

View Source
var Defaults = []ManifestEntry{
	{
		Backend:      vmkit.BackendAppleVF,
		Architecture: "arm64",
		URL:          "https://github.com/geoffbelknap/microagent/releases/download/kernels-6.12.22-r1/microagent-kernel-6.12.22-apple-vf-arm64",
		SHA256:       "73fe78e51a8ce348e69311d376a02114440eee6b60bf2e91af54bdf2dfb405ec",
	},
	{
		Backend:      vmkit.BackendFirecracker,
		Architecture: "amd64",
		URL:          "https://github.com/geoffbelknap/microagent-kernels/releases/download/kernels-6.1.155-r2/microagent-kernel-6.1.155-firecracker-amd64",
		SHA256:       "4bbe8b2fd19f78fea4bf02d52a67482227a896c90a63f272b6a084fa46a416c0",
	},
	{
		Backend:      vmkit.BackendFirecracker,
		Architecture: "arm64",
		URL:          "https://github.com/geoffbelknap/microagent-kernels/releases/download/kernels-6.1.155-r3/microagent-kernel-6.1.155-firecracker-arm64",
		SHA256:       "bd91c4f5c15e497b99ac0c96977a92e68a0c11d3c72267104f5fb968994c4a71",
	},
	{
		Backend:      vmkit.BackendWindowsHyperV,
		Architecture: "amd64",
		URL:          "https://github.com/geoffbelknap/microagent-kernels/releases/download/kernels-6.12.22-r1/microagent-kernel-6.12.22-windows-hyperv-amd64",
		SHA256:       "8623b349a95fa536891e0d292d198396504aad8308c7619083994f7553707a92",
	},
}

Functions

func Support

func Support(backend, arch string) *vmkit.KernelSupport

func SupportForPath

func SupportForPath(backend, arch, path string) *vmkit.KernelSupport

Types

type InstallOptions

type InstallOptions struct {
	URL          string
	FromPath     string
	SHA256       string
	OutputPath   string
	Backend      string
	Architecture string
}

type InstallResult

type InstallResult struct {
	Path   string `json:"path"`
	SHA256 string `json:"sha256"`
}

func Install

func Install(ctx context.Context, opts InstallOptions) (InstallResult, error)

type ManifestEntry

type ManifestEntry struct {
	Backend      string
	Architecture string
	URL          string
	SHA256       string
}

func Default

func Default(backend, arch string) (ManifestEntry, bool)

type VerifyOptions

type VerifyOptions struct {
	Path         string
	SHA256       string
	Backend      string
	Architecture string
}

type VerifyResult

type VerifyResult struct {
	OK     bool   `json:"ok"`
	Path   string `json:"path"`
	SHA256 string `json:"sha256"`
}

func Verify

func Verify(opts VerifyOptions) (VerifyResult, error)

Jump to

Keyboard shortcuts

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