archive

package
v0.0.0-...-13d9b3d Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSupported

func IsSupported(path string) bool

func Walk

func Walk(path string, walkcFunc WalkFunc) error

func Walk7Zip

func Walk7Zip(file *os.File, fileSize int64, walkFunc WalkFunc) error

func WalkRPM

func WalkRPM(file io.Reader, walkFunc WalkFunc) error

func WalkTar

func WalkTar(file io.Reader, walkFunc WalkFunc) error

WalkTar may be passed a compressed reader instead of an explicit file

func WalkTarGzip

func WalkTarGzip(file *os.File, walkFunc WalkFunc) error

func WalkTarXz

func WalkTarXz(file *os.File, walkFunc WalkFunc) error

func WalkZip

func WalkZip(file *os.File, fileSize int64, walkFunc WalkFunc) error

Types

type WalkFunc

type WalkFunc func(path string, info fs.FileInfo, file io.ReaderAt, err error) error

WalkFunc defines the function in order to efficiently walk over the archive

Jump to

Keyboard shortcuts

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