unarchive

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsUnarchived

func IsUnarchived(archiveType, assetName string) bool

func Unarchive

func Unarchive(src *File, dest string, logE *logrus.Entry, fs afero.Fs) error

Types

type Decompressor

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

func (*Decompressor) Unarchive

func (decompressor *Decompressor) Unarchive(fs afero.Fs, body io.Reader) error

type File added in v1.6.1

type File struct {
	Body     io.Reader
	Filename string
	Type     string
}

type Unarchiver

type Unarchiver interface {
	Unarchive(fs afero.Fs, body io.Reader) error
}

Jump to

Keyboard shortcuts

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