tool

package
v3.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

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

func GetArchiveTool(ext string) (Tool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL