Documentation
¶
Index ¶
- Variables
- func IsSubdir(upper, lower string) (bool, error)
- func PrepareFileNameAndType(argFile, argType string) (outFileName, outType string)
- type Dumper
- func (dumper *Dumper) AddFileByPath(filePath, absPath string) error
- func (dumper *Dumper) AddFileByReader(r io.Reader, info os.FileInfo, customName string) error
- func (dumper *Dumper) AddRecursiveExclude(insidePath, absPath string, excludes []string) error
- func (dumper *Dumper) Close() error
- func (dumper *Dumper) GlobalExcludeAbsPath(absPaths ...string)
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 PrepareFileNameAndType ¶
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 { Verbose bool // contains filtered or unexported fields }
func (*Dumper) AddFileByPath ¶
AddFileByPath adds a file by its filesystem path
func (*Dumper) AddFileByReader ¶
AddFileByReader adds a file's contents from a Reader
func (*Dumper) AddRecursiveExclude ¶
func (*Dumper) GlobalExcludeAbsPath ¶
Click to show internal directories.
Click to hide internal directories.