untar

package
v0.23.6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package untar provides ways to manage tarball files that ARE NOT GZIPPED.

Index

Constants

View Source
const (
	// DefaultMaxUntarSize defines the default (100MB) max amount of bytes that Untar will process.
	DefaultMaxUntarSize = 100 << (10 * 2)

	// UnlimitedUntarSize defines the value which disables untar size checks for maxUntarSize.
	UnlimitedUntarSize = -1
)

Variables

This section is empty.

Functions

func Untar

func Untar(r io.Reader, dir string) (err error)

Untar reads the gzip-compressed tar file from r and writes it into dir.

If dir is a relative path, it cannot ascend from the current working dir. If dir exists, it must be a directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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