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 WithSkipSymlinks ¶
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.