Versions in this module Expand all Collapse all v1 v1.3.19 Jun 6, 2023 v1.3.18 Jun 6, 2023 Changes in this version + const ExtTar + const ExtTarLz4 + const ExtTarTgz + const ExtTgz + const ExtZip + const TarBlockSize + var ErrTarIsEmpty = errors.New("tar is empty") + var FileExtensions = []string + func GetReader(fh *os.File, archname, filename, mime string, size int64) (cos.ReadCloseSizer, error) + func Init(f feat.Flags) + func IsErrUnknownFileExt(err error) bool + func IsErrUnknownMime(err error) bool + func Mime(mime, filename string) (string, error) + func MimeFQN(smm *memsys.MMSA, mime, archname string) (m string, err error) + func MimeFile(file *os.File, smm *memsys.MMSA, mime, archname string) (m string, err error) + func OpenTarSeekEnd(cname, workFQN string) (rwfh *os.File, err error) + func SetTarHeader(hdr any) + func Strict(mime, filename string) (m string, err error) + type Entry struct + Name string + Size int64 + func List(fqn string) ([]*Entry, error) + type ErrUnknownFileExt struct + func NewErrUnknownFileExt(d string) *ErrUnknownFileExt + func (e *ErrUnknownFileExt) Error() string + type ErrUnknownMime struct + func NewErrUnknownMime(d string) *ErrUnknownMime + func (e *ErrUnknownMime) Error() string + type HeaderCallback func(any) + type Opts struct + CB HeaderCallback + Serialize bool + type Writer interface + Copy func(src io.Reader, size ...int64) error + Fini func() + Write func(nameInArch string, oah cos.OAH, reader io.Reader) error + func NewWriter(mime string, w io.Writer, cksum *cos.CksumHashSize, opts *Opts) (aw Writer)