tarball

package
v0.57.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTarball

func DecodeTarball(reader io.Reader, baseDir string) error

DecodeTarball takes a reader and a base directory, and extracts a gzipped tarball rooted on the given directory. If there is an error, the imput may only be partially consumed. At the moment, the tarball decoder only supports directories, regular files and symlinks.

func DirToTarball added in v0.51.0

func DirToTarball(dir, outpath string, useGzip bool) error

DirToTarball tars up an entire directory and outputs the tarball to the specified output path. If useGzip is true, it also gzips the resulting tarball.

Types

This section is empty.

Jump to

Keyboard shortcuts

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