archive

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry func() (io.ReadCloser, error)

type Opener

type Opener func(io.Reader) (Unarchiver, error)

type TarUnarchiver

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

func (*TarUnarchiver) Walk

func (u *TarUnarchiver) Walk(walker Walker) error

type Unarchiver

type Unarchiver interface {
	Walk(Walker) error
}

func OpenTar

func OpenTar(reader io.Reader) (Unarchiver, error)

func OpenTarBzip2

func OpenTarBzip2(reader io.Reader) (Unarchiver, error)

func OpenTarGzip

func OpenTarGzip(reader io.Reader) (Unarchiver, error)

func OpenTarXz added in v0.1.14

func OpenTarXz(reader io.Reader) (Unarchiver, error)

func OpenZip

func OpenZip(reader io.Reader) (Unarchiver, error)

type Walker

type Walker func(os.FileInfo, Entry) error

type ZipUnarchiver

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

func (*ZipUnarchiver) Walk

func (u *ZipUnarchiver) Walk(walker Walker) error

Jump to

Keyboard shortcuts

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