archive

package
v2.34.17 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: AGPL-3.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArchiveTooLarge = xerrors.New("archive exceeds maximum size")

ErrArchiveTooLarge reports that archive expansion would exceed the configured limit.

View Source
var ErrInvalidZipContent = xerrors.New("invalid zip content")

ErrInvalidZipContent reports that a ZIP entry is malformed or its contents fail validation during conversion.

Functions

func CreateTarFromZip

func CreateTarFromZip(zipReader *zip.Reader, maxSize int64) ([]byte, error)

CreateTarFromZip converts the given zipReader to a tar archive. maxSize limits the total tar output, including tar metadata.

func CreateZipFromTar

func CreateZipFromTar(tarReader *tar.Reader, maxSize int64) ([]byte, error)

CreateZipFromTar converts the given tarReader to a zip archive.

func WriteZip

func WriteZip(w io.Writer, tarReader *tar.Reader, maxSize int64) error

WriteZip writes the given tarReader to w.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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