offline

package
v0.1.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImageNotFound = errors.New("offline image not found")

Functions

func EnsureRootfs

func EnsureRootfs(cacheBaseDir, name string) (string, error)

EnsureRootfs extracts an embedded offline rootfs into cache and returns the rootfs path.

func List

func List() ([]string, error)

List returns available embedded offline image names.

Types

type ImageMetadata

type ImageMetadata struct {
	Name      string
	Archive   string
	SHA256    string
	SizeBytes int64
}

func Metadata

func Metadata() ([]ImageMetadata, error)

Metadata returns embedded image metadata including sha256 and size.

Jump to

Keyboard shortcuts

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