unarchive

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 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

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 struct{}

func New added in v1.20.0

func New() *Unarchiver

func (*Unarchiver) Unarchive

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

type Unarchiver2 added in v1.20.0

type Unarchiver2 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