Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
func Compress(infile, name, outfile string, timestamp *time.Time) (tarSha []byte, tgzSha []byte, err error)
Compress takes a given path to a file and creates a tgz file that contains only that file. Gives the file the provided name in the tgz. Will use the actual timestamp on the file, unless overridden. Returns hashes of the tar and the entire gzip.
func Uncompress ¶
Uncompress takes a given path to a tgz file and extracts the contents to the target directory. contains only that file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.