Documentation
¶
Index ¶
- Variables
- func CacheDirForURL(urld string) (string, error)
- func CacheDirPrefix() (string, error)
- func ConvertQcow2ToRaw(ctx context.Context, qcow2File io.ReaderAt, rawFile io.WriterAt) error
- func CurrentKernelArch() string
- func DecompressUnknown(ctx context.Context, rdr io.Reader) (io.Reader, error)
- func DownloadAndExtractVMI(ctx context.Context, downloads map[string]string) (map[string]io.Reader, error)
- func EmphiricalVMCacheDir(ctx context.Context, id string) (string, error)
- func ExtractVmlinuxNative(ctx context.Context, imagePath string) (io.ReadCloser, error)
- func FindFile(files []string, filename string) (string, error)
- func FindFirstFileWithExtension(cacheDir string, extension string) (string, error)
- func IsKernelUncompressed(filename string) (bool, error)
- func TempDir(ctx context.Context) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoVmlinuxFound = errors.New("no vmlinux found")
)
Functions ¶
func CacheDirForURL ¶
func CacheDirPrefix ¶
func ConvertQcow2ToRaw ¶
func CurrentKernelArch ¶
func CurrentKernelArch() string
func DecompressUnknown ¶
func DownloadAndExtractVMI ¶
func EmphiricalVMCacheDir ¶
func ExtractVmlinuxNative ¶
extractVmlinuxNative attempts to extract vmlinux from a kernel image
func IsKernelUncompressed ¶
IsKernelUncompressed checks if the provided file is an uncompressed kernel that can be directly used by the Virtualization Framework.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.