Documentation ¶
Overview ¶
This package provides convenience helpers on top of archive/tar to be able to tar/untar files with a functionality closer to gnu tar command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindFile ¶
FindFile returns the header and ReadCloser for the entry in the tarfile that matches the filename. If nothing matches, an errors.NotFound error is returned.
func TarFiles ¶
TarFiles writes a tar stream into target holding the files listed in fileList. strip will be removed from the beginning of all the paths when stored (much like gnu tar -C option) Returns a Sha sum of the tar and nil if everything went well or empty sting and error in case of error. We use a base64 encoded sha1 hash, because this is the hash used by RFC 3230 Digest headers in http responses
Types ¶
This section is empty.