astiarchive

package
v0.0.0-...-c921a00 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFileMode os.FileMode = 0775

DefaultFileMode represents the default file mode

Functions

func Untar

func Untar(ctx context.Context, src, dst string) (err error)

Untar untars a src into a dst

func Unzip

func Unzip(ctx context.Context, src, dst string) (err error)

Unzip unzips a src into a dst Possible src formats are /path/to/zip.zip or /path/to/zip.zip/internal/path if you only want to unzip files in /internal/path in the .zip archive

func Zip

func Zip(ctx context.Context, src, dst, dstRoot string) (err error)

Zip zips a src into a dst dstRoot can be used to create root directories so that the content is zipped in /path/to/zip.zip/root/path

Types

This section is empty.

Jump to

Keyboard shortcuts

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