unarchive

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 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

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 MockUnarchiver added in v1.36.0

type MockUnarchiver struct {
	Err error
}

func (*MockUnarchiver) Unarchive added in v1.36.0

func (unarchiver *MockUnarchiver) Unarchive(src *File, dest string, fs afero.Fs, prgOpts *ProgressBarOpts) error

type ProgressBarOpts added in v1.15.0

type ProgressBarOpts struct {
	ContentLength int64
	Description   string
}

type Unarchiver

type Unarchiver interface {
	Unarchive(src *File, dest string, fs afero.Fs, prgOpts *ProgressBarOpts) error
}

type UnarchiverImpl added in v1.36.0

type UnarchiverImpl struct{}

func New added in v1.20.0

func New() *UnarchiverImpl

func (*UnarchiverImpl) Unarchive added in v1.36.0

func (unarchiver *UnarchiverImpl) Unarchive(src *File, dest string, fs afero.Fs, prgOpts *ProgressBarOpts) error

Jump to

Keyboard shortcuts

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