Documentation ¶
Index ¶
- Constants
- Variables
- func IsErrCompressLimitReached(err error) bool
- type ArchiveData
- type ArchiveHeader
- type Archiver
- type DebArchiver
- type Decompressor
- type ErrCompressLimitReached
- type GzMetadataArchiver
- type LimitAggregatingReadCloser
- type LimitAggregatingReadCloserProvider
- type RarArchiver
- type RpmArchiver
- type RpmPkg
- type SevenZipArchiver
- type SevenZipReader
- type TarArchiver
- type ZipArchiver
- type ZipReadCloser
- type ZoneInfoFileError
Constants ¶
View Source
const DebArchiverSkipFoldersCheckParamsKey = "DebArchiverSkipFoldersCheckParamsKey"
View Source
const (
NotCompressedOrNotSupportedError = "file %v is not compressed or the compression method is not supported"
)
View Source
const (
RpmTagModularityLabel = 5096
)
Variables ¶
View Source
var ErrTooManyEntries = errors.New("too many entries in archive")
Functions ¶
func IsErrCompressLimitReached ¶ added in v1.2.2
Types ¶
type ArchiveData ¶
type ArchiveHeader ¶
type ArchiveHeader struct { ArchiveReader io.Reader IsFolder bool Name string ModTime int64 Size int64 }
func NewArchiveHeader ¶
type DebArchiver ¶ added in v1.1.0
func (DebArchiver) ExtractArchive ¶ added in v1.1.0
func (da DebArchiver) ExtractArchive(path string, processingFunc func(*ArchiveHeader, map[string]interface{}) error, params map[string]interface{}) error
type Decompressor ¶ added in v1.4.0
type Decompressor struct {
MaxCompressRatio int64
}
func (Decompressor) ExtractArchive ¶ added in v1.4.0
func (dc Decompressor) ExtractArchive(path string, processingFunc func(*ArchiveHeader, map[string]interface{}) error, params map[string]interface{}) error
type ErrCompressLimitReached ¶ added in v1.2.0
func (*ErrCompressLimitReached) Error ¶ added in v1.2.2
func (ErrCompressLimit *ErrCompressLimitReached) Error() string
type GzMetadataArchiver ¶
type GzMetadataArchiver struct {
MaxCompressRatio int64
}
func (GzMetadataArchiver) ExtractArchive ¶
func (ga GzMetadataArchiver) ExtractArchive(path string, processingFunc func(*ArchiveHeader, map[string]interface{}) error, params map[string]interface{}) error
type LimitAggregatingReadCloser ¶ added in v1.2.0
type LimitAggregatingReadCloserProvider ¶ added in v1.2.0
func (*LimitAggregatingReadCloserProvider) CreateLimitAggregatingReadCloser ¶ added in v1.2.0
func (provider *LimitAggregatingReadCloserProvider) CreateLimitAggregatingReadCloser(rc io.Reader) LimitAggregatingReadCloser
type RarArchiver ¶ added in v1.4.0
func (RarArchiver) ExtractArchive ¶ added in v1.4.0
func (ra RarArchiver) ExtractArchive(path string, processingFunc func(*ArchiveHeader, map[string]interface{}) error, params map[string]interface{}) error
type RpmArchiver ¶ added in v1.1.0
func (RpmArchiver) ExtractArchive ¶ added in v1.1.0
func (ra RpmArchiver) ExtractArchive(path string, processingFunc func(*ArchiveHeader, map[string]interface{}) error, params map[string]interface{}) error
type SevenZipArchiver ¶ added in v1.1.0
func (SevenZipArchiver) ExtractArchive ¶ added in v1.1.0
func (sa SevenZipArchiver) ExtractArchive(path string, processingFunc func(*ArchiveHeader, map[string]interface{}) error, params map[string]interface{}) error
type SevenZipReader ¶
func (*SevenZipReader) Close ¶ added in v1.2.0
func (a *SevenZipReader) Close() error
type TarArchiver ¶ added in v1.1.0
func (TarArchiver) ExtractArchive ¶ added in v1.1.0
func (ta TarArchiver) ExtractArchive(path string, processingFunc func(*ArchiveHeader, map[string]interface{}) error, params map[string]interface{}) error
type ZipArchiver ¶ added in v1.1.0
func (ZipArchiver) ExtractArchive ¶ added in v1.1.0
func (za ZipArchiver) ExtractArchive(path string, processingFunc func(*ArchiveHeader, map[string]interface{}) error, params map[string]interface{}) error
type ZoneInfoFileError ¶ added in v1.5.1
type ZoneInfoFileError struct{}
func (*ZoneInfoFileError) Error ¶ added in v1.5.1
func (e *ZoneInfoFileError) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.