gaf

package
v0.0.0-...-8162bcc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MBR  string = "mbr.img"
	Boot string = "boot.img"
	Root string = "root.img"
	SBOM string = "sbom.json"
)

Variables

View Source
var ErrMaformedGaf = errors.New("unable to extract malformed gaf")

ErrMaformedGaf denotes the error for failed extraction of a gaf due to it being malformed.

Functions

This section is empty.

Types

type ReadClosers

type ReadClosers struct {
	MBRRC  io.ReadCloser
	BootRC io.ReadCloser
	RootRC io.ReadCloser
	SBOMRC io.ReadCloser
}

ReadClosers holds ReadClosers for the content of the gaf file.

func Extract

func Extract(_ context.Context, source io.ReaderAt, size int64) (ReadClosers, error)

Extract extracts the content of a gaf archive.

Jump to

Keyboard shortcuts

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