Documentation
¶
Index ¶
- Constants
- func Compress(path, outputPath string) error
- func CompressTar(path, outputPath string) error
- func Decompress(tarPath, baseDir string) error
- func DecompressTar(tarPath, baseDir string) error
- func NewColorLogger(name string, writer io.Writer, newColor bool) io.Writer
- func TarCopy(src, dst, tempDir string) error
- type ColorLogger
Constants ¶
View Source
const MaxFileSizeBytes = 50 * 1024 * 1024 // 50MB
View Source
const MaxNameLength = 20
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
Compress takes a path to a file or directory and creates a .tar.gzip file at the outputPath location
func CompressTar ¶
CompressTar takes a path to a file or directory and creates a .tar file at the outputPath location
func Decompress ¶
Decompress takes a location to a .tar.gzip file and a base path and decompresses the contents wrt the base path
func DecompressTar ¶
DecompressTar takes a location to a .tar file and a base path and decompresses the contents wrt the base path
Types ¶
type ColorLogger ¶
type ColorLogger struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.