archive

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TarCreator

type TarCreator interface {
	CreateTarCommand(srcPath string, slashDot bool) (ecc.ExecCmd, error)
}

func NewTarCreator

func NewTarCreator(ecc ecc.ExecCmdCreator, logger flog.Logger) TarCreator

type TarExtractor

type TarExtractor interface {
	ExtractInTemp(reader io.Reader, dirPrefix string) (ecc.ExecCmd, error)
	CreateExtractCmd(reader io.Reader, destDir string) (ecc.ExecCmd, error)
	Cleanup(cmd ecc.ExecCmd)
	ExtractCompressed(tarArchive io.Reader, dest string, options *archive.TarOptions) error
}

TarExtractor interface to extract a tar file

func NewTarExtractor

func NewTarExtractor(ecc ecc.ExecCmdCreator, logger flog.Logger) TarExtractor

NewTarExtractor creates a new UncompressedTarExtractor.

Jump to

Keyboard shortcuts

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