Documentation ¶
Index ¶
- Constants
- func AddFile(tw *tar.Writer, pth, directory string) (err error)
- func AddFileFromBuffer(tw *tar.Writer, file *os.File, fi os.FileInfo, directory string) (err error)
- func AddTar(tw *tar.Writer, pth string) (err error)
- func AddTarFromBuffer(tw *tar.Writer, tr *TarReader, rc io.ReadCloser) (err error)
- func AddTarFromWriter(tw *tar.Writer, tr *TarReader, rc io.ReadCloser) (err error)
- func CreateNewOutput(path string) (file *os.File, err error)
- func FileExistAndNotEmpty(file *os.File) bool
- func GetCTFromFormat(format string) string
- func GetSeekedTar(input *os.File, output *os.File, seek int64) (out *os.File, err error)
- func ReadContentType(file *os.File) (ct string, err error)
- type Crdr
- type JobChannel
- type TarPart
- type TarReader
Constants ¶
View Source
const ( GzipCT string = `application/x-gzip` TarCT string = `application/octet-stream` //an assumption XzCT string = "application/xz-compressed" )
Variables ¶
This section is empty.
Functions ¶
func AddFileFromBuffer ¶
func AddTarFromBuffer ¶
func AddTarFromWriter ¶
func FileExistAndNotEmpty ¶
func GetCTFromFormat ¶
func GetSeekedTar ¶
Types ¶
type JobChannel ¶
type JobChannel chan TarPart
type TarReader ¶
func OpenTarBuffer ¶
func OpenTarFile ¶
func OpenTarFile(pth string) (tr *TarReader, rc io.ReadCloser, err error)
Click to show internal directories.
Click to hide internal directories.