archive

package
v3.33.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 12 Imported by: 2

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 ExtractTGZ

func ExtractTGZ(r io.Reader, dir string) error

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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