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 InstallResult ¶
func Install ¶
func Install(ctx context.Context, opts InstallOptions) (InstallResult, error)
type ManifestEntry ¶
func Default ¶
func Default(backend, arch string) (ManifestEntry, bool)
type VerifyOptions ¶
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)
Click to show internal directories.
Click to hide internal directories.