Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnrecognizedArchiveType = errors.New("Unrecognized archive type")
)
Functions ¶
func CleanFileName ¶
Types ¶
type ArchiveInfo ¶
type ArchiveInfo struct { Strategy ArchiveStrategy Features savior.ExtractorFeatures }
func Probe ¶
func Probe(params *TryOpenParams) (*ArchiveInfo, error)
func (*ArchiveInfo) GetExtractor ¶
type ArchiveStrategy ¶
type ArchiveStrategy int
const ( ArchiveStrategyNone ArchiveStrategy = 0 ArchiveStrategyZip ArchiveStrategy = 100 ArchiveStrategyTar ArchiveStrategy = 200 ArchiveStrategyTarGz ArchiveStrategy = 201 ArchiveStrategyTarBz2 ArchiveStrategy = 202 ArchiveStrategySevenZip ArchiveStrategy = 300 )
type ExtractParams ¶
type ThrottledSaveFunc ¶
Saves the state if force is true or the interval has passed Returns true if the state was actually saved, false if not
func ThrottledSave ¶
func ThrottledSave(params *ExtractParams) ThrottledSaveFunc
Click to show internal directories.
Click to hide internal directories.