Documentation ¶
Overview ¶
Package tarfs implements the fs.FS interface over a tar archive.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrFormat = errors.New("tarfs: format error reading file")
ErrFormat can be compared via errors.Is against errors reported by New to determine if the tar fail is considered well-formed.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS implements a filesystem abstraction over an io.ReaderAt containing a tar.
func New ¶
New creates an FS from the tar contained in the ReaderAt.
The ReaderAt must remain valid for the entire life of the returned FS and any FSes returned by Sub.
Click to show internal directories.
Click to hide internal directories.