zip

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestZipDirName  = "test"
	TestZipFilename = "test.txt"

	TestRawZip  = `` /* 2052-byte string literal not displayed */
	TestRawGzip = `` /* 896-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func SetupInvalidTestZip

func SetupInvalidTestZip(t *testing.T, fs afero.Fs) afero.File

func SetupTestArchive

func SetupTestArchive(t *testing.T, fs afero.Fs, rawZip string) afero.File

Types

type Extractor added in v0.8.1

type Extractor interface {
	ExtractZip(sourceFile afero.File, targetDir string) error
	ExtractGzip(sourceFilePath, targetDir string) error
}

func NewOneAgentExtractor added in v0.8.1

func NewOneAgentExtractor(fs afero.Fs, pathResolver metadata.PathResolver) Extractor

type OneAgentExtractor added in v0.8.1

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

func (OneAgentExtractor) ExtractGzip added in v0.8.1

func (extractor OneAgentExtractor) ExtractGzip(sourceFilePath, targetDir string) error

func (OneAgentExtractor) ExtractZip added in v0.8.1

func (extractor OneAgentExtractor) ExtractZip(sourceFile afero.File, targetDir string) error

Jump to

Keyboard shortcuts

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