Documentation ¶
Overview ¶
The tar transmat packs filesystems into the widely-recognized "tar" format, and can use any k/v-styled warehouse for storage.
Index ¶
- Constants
- Variables
- func Decompress(stream io.Reader) (io.Reader, error)
- func MetadataToTarHdr(fmeta *fs.Metadata, hdr *tar.Header)
- func Pack(ctx context.Context, packType api.PackType, pathStr string, ...) (_ api.WareID, err error)
- func TarHdrToMetadata(hdr *tar.Header, fmeta *fs.Metadata) (skipMe error, haltMe error)
- type Compression
Constants ¶
View Source
const PackType = api.PackType("tar")
Variables ¶
View Source
var ( Mirror rio.MirrorFunc = util.CreateMirror(unpackTar) Scan rio.ScanFunc = util.CreateScanner(PackType, unpackTar) Unpack rio.UnpackFunc = util.CreateUnpack(PackType, unpackTar) )
Functions ¶
func MetadataToTarHdr ¶
Mutate tar.Header fields to match the given fmeta.
Types ¶
type Compression ¶
type Compression int
const ( Uncompressed Compression = iota Bzip2 Gzip Xz )
func DetectCompression ¶
func DetectCompression(source []byte) Compression
func (*Compression) Extension ¶
func (compression *Compression) Extension() string
Click to show internal directories.
Click to hide internal directories.