Documentation
¶
Index ¶
- Variables
- func CreateSingleFileTar(tarFile, path, txt string) error
- func CreateSingleFileTarReader(path, txt string) (io.Reader, error)
- func IsZip(file *os.File) (bool, error)
- func ReadDirAsTar(srcDir, basePath string, uid, gid int, mode int64) io.ReadCloser
- func ReadTarEntry(tarPath string, entryPath ...string) (*tar.Header, []byte, error)
- func ReadZipAsTar(srcPath, basePath string, uid, gid int, mode int64) io.ReadCloser
- func WriteDirToTar(tw *tar.Writer, srcDir, basePath string, uid, gid int, mode int64) error
- func WriteZipToTar(tw *tar.Writer, srcZip, basePath string, uid, gid int, mode int64) error
Constants ¶
This section is empty.
Variables ¶
View Source
var NormalizedDateTime time.Time
Functions ¶
func CreateSingleFileTar ¶
func ReadDirAsTar ¶
func ReadDirAsTar(srcDir, basePath string, uid, gid int, mode int64) io.ReadCloser
func ReadTarEntry ¶
func ReadZipAsTar ¶
func ReadZipAsTar(srcPath, basePath string, uid, gid int, mode int64) io.ReadCloser
func WriteDirToTar ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.