unpacker

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestUserXattr

func TestUserXattr(path string) (ok bool, err error)

TestUserXattr tries to set a user xattr on PATH to ensure they are supported on this fs

Types

type Squashfs

type Squashfs struct {
	UnsquashfsPath string
}

Squashfs represents a squashfs unpacker.

func NewSquashfs

func NewSquashfs() *Squashfs

NewSquashfs initializes and returns a Squahfs unpacker instance

func (*Squashfs) ExtractAll

func (s *Squashfs) ExtractAll(reader io.Reader, dest string) error

ExtractAll extracts a squashfs filesystem read from reader to a destination directory.

func (*Squashfs) ExtractFiles

func (s *Squashfs) ExtractFiles(files []string, reader io.Reader, dest string) error

ExtractFiles extracts provided files from a squashfs filesystem read from reader to a destination directory.

func (*Squashfs) HasUnsquashfs

func (s *Squashfs) HasUnsquashfs() bool

HasUnsquashfs returns if unsquashfs binary has been found or not

Jump to

Keyboard shortcuts

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