archive

package
v2.2.2-0...-17ad7ea Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package archive provides support for creating .tar.gz/.tgz archives of local folders and returning the in-memory buffer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TGZ

func TGZ(dir, prefixPathInsideTar string, useDefaultExcludes bool) ([]byte, error)

TGZ adds the contents of the provided directory to an in-memory .tar.gz/.tgz and returns the bytes.

func UnTGZ

func UnTGZ(tarball []byte, dir string) error

UnTGZ uncompresses a .tar.gz/.tgz file into a specific directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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