Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Tools = make(map[string]Tool)
)
Functions ¶
func RegisterTool ¶
func RegisterTool(tool Tool)
Types ¶
type Tool ¶
type Tool interface { AcceptedExtensions() []string GetMeta(ss *stream.SeekableStream, args model.ArchiveArgs) (model.ArchiveMeta, error) List(ss *stream.SeekableStream, args model.ArchiveInnerArgs) ([]model.Obj, error) Extract(ss *stream.SeekableStream, args model.ArchiveInnerArgs) (io.ReadCloser, int64, error) Decompress(ss *stream.SeekableStream, outputPath string, args model.ArchiveInnerArgs, up model.UpdateProgress) error }
func GetArchiveTool ¶
Click to show internal directories.
Click to hide internal directories.