host

package
v0.0.0-...-39278d5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoVmlinuxFound = errors.New("no vmlinux found")
)

Functions

func CacheDirForURL

func CacheDirForURL(urld string) (string, error)

func CacheDirPrefix

func CacheDirPrefix() (string, error)

func ConvertQcow2ToRaw

func ConvertQcow2ToRaw(ctx context.Context, qcow2File io.ReaderAt, rawFile io.WriterAt) error

func CurrentKernelArch

func CurrentKernelArch() string

func DecompressUnknown

func DecompressUnknown(ctx context.Context, rdr io.Reader) (io.Reader, error)

func DownloadAndExtractVMI

func DownloadAndExtractVMI(ctx context.Context, downloads map[string]string) (map[string]io.Reader, error)

func EmphiricalVMCacheDir

func EmphiricalVMCacheDir(ctx context.Context, id string) (string, error)

func ExtractVmlinuxNative

func ExtractVmlinuxNative(ctx context.Context, imagePath string) (io.ReadCloser, error)

extractVmlinuxNative attempts to extract vmlinux from a kernel image

func FindFile

func FindFile(files []string, filename string) (string, error)

func FindFirstFileWithExtension

func FindFirstFileWithExtension(cacheDir string, extension string) (string, error)

func IsKernelUncompressed

func IsKernelUncompressed(filename string) (bool, error)

IsKernelUncompressed checks if the provided file is an uncompressed kernel that can be directly used by the Virtualization Framework.

func TempDir

func TempDir(ctx context.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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