zip

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 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

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

func NewOneAgentExtractor

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

type OneAgentExtractor

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

func (OneAgentExtractor) ExtractGzip

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

func (OneAgentExtractor) ExtractZip

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