Documentation
¶
Index ¶
Constants ¶
View Source
const ( Gzip = "gzip" Tar = "tar" Zstd = "zstd" DefaultCompressionLevel = flate.DefaultCompression DefaultArchiveFormat = Tar )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
type Archive interface { // Create writes content of the given source to an archive, returns written bytes. // Similar to io.WriterTo. Create(srcs []string, w io.Writer) (int64, error) // Extract reads content from the given archive reader and restores it to the destination, returns written bytes. // Similar to io.ReaderFrom. Extract(dst string, r io.Reader) (int64, error) }
Archive is an interface that defines exposed behavior of archive formats.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option overrides behavior of Archive.
func WithCompressionLevel ¶
WithCompressionLevel sets compression level option.
func WithSkipSymlinks ¶
WithSkipSymlinks sets skip symlink option.
Click to show internal directories.
Click to hide internal directories.