dump

package
v1.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedOutputTypes = []string{"zip", "tar", "tar.sz", "tar.gz", "tar.xz", "tar.bz2", "tar.br", "tar.lz4", "tar.zst"}

Functions

func IsSubdir

func IsSubdir(upper, lower string) (bool, error)

func PrepareFileNameAndType

func PrepareFileNameAndType(argFile, argType string) (outFileName, outType string)

PrepareFileNameAndType prepares the output file name and type, if the type is not supported, it returns an empty "outType"

Types

type Dumper

type Dumper struct {
	Writer  archiver.Writer
	Verbose bool
	// contains filtered or unexported fields
}

func (*Dumper) AddFile

func (dumper *Dumper) AddFile(filePath, absPath string) error

func (*Dumper) AddReader

func (dumper *Dumper) AddReader(r io.ReadCloser, info os.FileInfo, customName string) error

func (*Dumper) AddRecursiveExclude

func (dumper *Dumper) AddRecursiveExclude(insidePath, absPath string, excludes []string) error

func (*Dumper) GlobalExcludeAbsPath

func (dumper *Dumper) GlobalExcludeAbsPath(absPaths ...string)

Jump to

Keyboard shortcuts

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