Documentation ¶
Overview ¶
Package ziptrans packs filesystems into the ZIP archive format.
*they can then use any k/v-styled warehouse for storage.
Index ¶
Constants ¶
View Source
const PackType = api.PackType("zip")
PackType defines this as the zip packing type.
Variables ¶
View Source
var ( Mirror rio.MirrorFunc = util.CreateMirror(unpackZip) Scan rio.ScanFunc = util.CreateScanner(PackType, unpackZip) Unpack rio.UnpackFunc = util.CreateUnpack(PackType, unpackZip) )
Functions ¶
func MetadataToZipHdr ¶
func MetadataToZipHdr(fmeta *fs.Metadata, hdr *zip.FileHeader)
MetadataToZipHdr mutates zip.FileHeader fields to match the given fmeta.
func Pack ¶
func Pack( ctx context.Context, packType api.PackType, pathStr string, filt api.FilesetPackFilter, warehouseAddr api.WarehouseLocation, mon rio.Monitor, ) (_ api.WareID, err error)
Pack transmutes a defined fileset into a given warehouse.
func ZipHdrToMetadata ¶
func ZipHdrToMetadata(hdr *zip.FileHeader, fmeta *fs.Metadata) error
ZipHdrToMetadata mutates fs.Metadata fields to match the given zip header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.