Documentation ¶
Overview ¶
Package tar provides ways to manage tarball files.
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 ¶
Types ¶
type TarOption ¶
type TarOption func(*tarOpts)
TarOption represents options to be applied to Tar.
func WithMaxUntarSize ¶
WithMaxUntarSize sets the limit size for archives being decompressed by Untar. When max is equal or less than 0 disables size checks.
func WithSkipGzip ¶ added in v0.8.0
func WithSkipGzip() TarOption
WithSkipGzip allows for un-taring plain tar files too, that aren't gzipped.
func WithSkipSymlinks ¶ added in v0.3.0
func WithSkipSymlinks() TarOption
WithSkipSymlinks allows for symlinks to be present in the tarball and skips them when decompressing.
Click to show internal directories.
Click to hide internal directories.