package
0.12.1
Repository: https://github.com/vbatts/tar-split.git
Documentation: pkg.go.dev

# Functions

NewBufferFileGetPutter is a simple in-memory FileGetPutter Implication is this is memory intensive..
NewDiscardFilePutter is a bit bucket FilePutter.
NewJSONPacker provides a Packer that writes each Entry (SegmentType and FileType) as a json document.
NewJSONUnpacker provides an Unpacker that reads Entries (SegmentType and FileType) as a json document.
NewPathFileGetter returns a FileGetter that is for files relative to path relpath.

# Constants

FileType represents a file payload from the tar stream.
SegmentType represents a raw bytes segment from the archive stream.

# Variables

CRCTable is the default table used for crc64 sum calculations.
ErrDuplicatePath occurs when a tar archive has more than one entry for the same file path.

# Structs

Entry
Entry is the structure for packing and unpacking the information read from the Tar archive.

# Interfaces

FileGetPutter is the interface that groups both Getting and Putting file payloads.
FileGetter is the interface for getting a stream of a file payload, addressed by name/filename.
FilePutter is the interface for storing a stream of a file payload, addressed by name/filename.
Packer describes the methods to pack Entries to a storage destination.
Unpacker describes the methods to read Entries from a source.

# Type aliases

Entries is for sorting by Position.
Type of Entry.