ziptrans

package
v0.0.0-...-7c31ad9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL