unsquashfs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package unsquashfs provides a Go interface to the unsquashfs(1) program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command(fromImg, toDir string, opts *Options, files ...string) *exec.Cmd

Command returns a configured unsquashfs command.

Selected files are extracted with full path, relative to toDir.

func Run

func Run(fromImg, toDir string, opts *Options, files ...string) error

Run executes unsquashfs(1) with the prescribed configuration.

Types

type Options

type Options struct {
	// Xattrs controls extraction of extended attributes.
	Xattrs bool
	// Extract even if files exists.
	Force bool

	// NumProcessors constrains concurrency factor.
	NumProcessors uint
	// DataQueueSizeMB defines the size of the data queue in megabytes.
	DataQueueSizeMB uint
	// FragmentQueueSizeMB defines the size of the fragment queue in megabytes.
	FragmentQueueSizeMB uint
}

Options contains options for extracting files from images.

Jump to

Keyboard shortcuts

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