Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPathIsDirectory = errors.New("path is a directory") ErrPathIsNotDirectory = errors.New("path is not a directory") ErrArchiverHasBeenDestroyed = errors.New("archiver has been destroyed") ErrNothingToArchive = errors.New("nothing to archive") ErrContentTypeNotFound = errors.New("content type not found") )
package level errors
Functions ¶
func BrotliAndGzipFiles ¶
BrotliAndGzipFiles recursively compresses of all regex matched files in a given directory structure
func CompressWebserverFiles ¶
CompressWebserverFiles recursively zips common webserver files in a given directory structure
Types ¶
type Archiver ¶
type Archiver struct {
// contains filtered or unexported fields
}
Archiver is used to create tar.gz archives
func (*Archiver) AddCSV ¶
AddCSV creates a temporary csv file to be archived when CreateArchive() is called
func (*Archiver) CreateArchive ¶
CreateArchive moves all pending temporary files into a tar.gz
Click to show internal directories.
Click to hide internal directories.