uncompress

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm uint32
const (
	Tar Algorithm = iota + 1
	TarGZ
	TarBZ2
	Zip
)

type TarReader

type TarReader struct {
	// contains filtered or unexported fields
}

func NewTarReader

func NewTarReader(r io.Reader) *TarReader

func (*TarReader) Root

func (tr *TarReader) Root(callback func(io.Reader, string, os.FileMode) error) (e error)

type Uncompressor

type Uncompressor struct {
	// contains filtered or unexported fields
}

func NewUncompressor

func NewUncompressor(w *Worker, m *mount.Mount, r reader) *Uncompressor

func (*Uncompressor) Root

func (un *Uncompressor) Root(dir string) (e error)

type Worker

type Worker struct {
	Root string
	Dir  string
	Name string
	// contains filtered or unexported fields
}

func New

func New(server grpc_fs.FS_UncompressServer) *Worker

func (*Worker) Serve

func (w *Worker) Serve() (e error)

type ZipReader

type ZipReader struct {
	// contains filtered or unexported fields
}

func NewZipReader

func NewZipReader(f *os.File) (*ZipReader, error)

func (*ZipReader) Root

func (zr *ZipReader) Root(callback func(io.Reader, string, os.FileMode) error) (e error)

Jump to

Keyboard shortcuts

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