tarutil

package
v0.63.10 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToArchive

func AddFileToArchive(tw *tar.Writer, filename, archivename string) error

func CreateArchiveGzipFile

func CreateArchiveGzipFile(tgzFilename string, files map[string]string) error

CreateArchiveGzipFile creates a gzipped tarball with the name `tgzFilename`. `files` is a `map[string]string` where the keys are local file paths and the values are archive filepaths. If the archive filepath is empty, the local filepath is used.

func CreateArchiveGzipWriter

func CreateArchiveGzipWriter(buf io.Writer, files map[string]string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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