archive

package
v0.0.0-...-b79a0d8 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package archive sorts, verifies, and extracts .upd (xz-compressed tar) files. Xz defaults to crc64 checksums but can support others such as sha256. .upd files *must* use sha256 or they will be considered invalid.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyUpdate

func ApplyUpdate(target *disk.Filesystem)

func FindValidUpd

func FindValidUpd(emergencyImage, imgopt, dir string, lowMem bool) (valid, userCancel bool)

searches for a valid update. if emergencyImage != "", only consider it. otherwise considers any in given dir. if lowmem is true, xz's output is thrown away for the validation round and the file is decompressed again for piping to tar

func Menu(choices []string) []string

display a menu. if lcd is present, uses that; otherwise vga.

func VgaMenu

func VgaMenu(choices []string) []string

list images on screen, ask user to make a choice returns string array with length 1

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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