package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Jan 6, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Filter struct {
Root string
}
Filter supports glob-style filtering.
NewFilter returns a filter.
Exclude adds excluded patterns.
Empty ("") patterns are ignored.
Include adds included patterns.
Empty ("") patterns are ignored.
Match determines if path matches the filter.
type FilterSet struct {
}
FilterSet is a collection of filter patterns.
Add pattern.
Empty ("") patterns are ignored.
Len returns number of patterns.
Match returns true when the path matches.
type Reader struct {
Filter Filter
}
Reader archive reader.
func NewReader() (reader *Reader)
NewReader returns a new reader.
Extract archive content to the destination path.
type Writer struct {
Filter Filter
}
Writer is a Zipped TAR streamed writer.
NewWriter returns a new writer.
AssertDir validates the path is a readable directory.
AssertFile validates the path is a readable file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.