package
0.0.0-20230522025900-293e5dee5d55
Repository: https://github.com/nextlinux/stereoscope.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
IterateTar is a function that reads across a tar and invokes a visitor function for each entry discovered.
MetadataFromTar returns the tar metadata from the header info.
MIMEType attempts to guess at the MIME type of a file given the contents.
NewFileReference creates a new unique file reference for the given path.
NewFileReferenceSet creates a new ReferenceSet instance.
No description provided by the author
NewLazyReadCloser creates a new LazyReadCloser for the given path.
No description provided by the author
No description provided by the author
NewMetadataFromSquashFSFile populates Metadata for the entry at path, with details from f.
No description provided by the author
No description provided by the author
NewResolution create a new Resolution for the given request path, showing the resolved reference (or nil if it does not exist), and the link resolution of the basename of the request path transitively.
NewTarIndex creates a new TarIndex that is already indexed.
No description provided by the author
ReaderFromTar returns a io.ReadCloser for the Path within a tar file.
No description provided by the author
No description provided by the author
UntarToDirectory writes the contents of the given tar reader to the given destination.
WalkSquashFS walks the file tree within the SquashFS filesystem read from r, calling fn for each file or directory in the tree, including root.
WalkSquashFSFromReader walks the file tree within the SquashFS filesystem read from r, calling fn for each file or directory in the tree, including root.

# Constants

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

# Variables

No description provided by the author

# Structs

ErrFileNotFound returned from ReaderFromTar if a file is not found in the given archive.
LazyReadCloser is a "lazy" read closer, allocating a file descriptor for the given path only upon the first Read() call.
No description provided by the author
Metadata represents all file metadata of interest.
Reference represents a unique file.
Resolution represents the fetching of a possibly non-existent file via a request path.
TarFileEntry represents the header, contents, and list position of an entry within a tar file.
TarIndex is a tar reader capable of O(1) fetching of entry contents after the first read.
No description provided by the author
No description provided by the author

# Type aliases

ID is used for file tree manipulation to uniquely identify tree nodes.
No description provided by the author
No description provided by the author
No description provided by the author
Path represents a file path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
References is a slice of file references (useful for attaching sorting-related methods).
ReferenceSet is a set of file references.
No description provided by the author
SquashFSVisitor is the type of the function called by WalkSquashFS to visit each file or directory.
TarFileVisitor is a visitor function meant to be used in conjunction with the IterateTar.
No description provided by the author
No description provided by the author