archive

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Overview

Package archive provides archiving and files compressing using Tar-GZ or Zip formmat.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTarballBytes

func CreateTarballBytes(basePath string, src string, outBuf io.Writer) error

CreateTarballBytes archives a file or directory src using Tar and Gzip compression. basePath param specify the base path directory of src path which will be skipped for each archive file header. Otherwise if basePath param is empty then only src path will taken into account.

func CreateZipballBytes

func CreateZipballBytes(basePath string, src string, outBuf io.Writer) error

CreateZipballBytes archives a file or directory (src path) using Zip. basePath param specify the base path directory of src path which will be skipped for each archive file header. Otherwise if basePath param is empty then only src path will taken into account.

Types

This section is empty.

Jump to

Keyboard shortcuts

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