unarchive

package
v1.19.0-3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 10 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, prgOpts *ProgressBarOpts) 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, prgOpts *ProgressBarOpts) error

type File added in v1.6.1

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

type ProgressBarOpts added in v1.15.0

type ProgressBarOpts struct {
	ContentLength int64
	Description   string
}

type Unarchiver

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

Jump to

Keyboard shortcuts

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