package
0.81.0
Repository: https://github.com/nextlinux/gosbom.git
Documentation: pkg.go.dev

# Functions

ContentsFromZip extracts select paths for the given archive and returns a set of string contents for each path.
ExtractFromZipToUniqueTempFile extracts select paths for the given archive to a temporary directory, returning file openers for each file extracted.
ExtractGlobsFromTarToUniqueTempFile extracts paths matching the given globs within the given archive to a temporary directory, returning file openers for each file extracted.
GlobMatch evaluates the given glob pattern against the given "name" string, indicating if there is a match or not.
NewZipFileManifest creates and returns a new ZipFileManifest populated with path and metadata from the given zip archive path.
OpenZip provides a ZipReadCloser for the given filepath.
TraverseFilesInZip enumerates all paths stored within a zip archive using the visitor pattern.
UnzipToDir extracts a zip archive to a target directory.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Opener is an object that stores a path to later be opened as a file.
ZipReadCloser is a drop-in replacement for zip.ReadCloser (from zip.OpenReader) that additionally considers zips that have bytes prefixed to the front of the archive (common with self-extracting jars).

# Type aliases

ZipFileManifest is a collection of paths and their file metadata.