Documentation ¶ Index ¶ Variables func WriteTarGzipEncoded(tar Tar, writer io.Writer) (err error) func WriteTarS2Encoded(tar Tar, writer io.Writer) (err error) type Tar func (t *Tar) Add(srcPath, destPath string) error func (t *Tar) Remove(path string) bool func (t *Tar) Write(writer io.Writer) error Constants ¶ This section is empty. Variables ¶ View Source var ErrEmptyArchive = errors.New("no files were added to the archive") Functions ¶ func WriteTarGzipEncoded ¶ func WriteTarGzipEncoded(tar Tar, writer io.Writer) (err error) func WriteTarS2Encoded ¶ func WriteTarS2Encoded(tar Tar, writer io.Writer) (err error) Types ¶ type Tar ¶ type Tar struct { Ignorer *ignore.Ignorer // contains filtered or unexported fields } func (*Tar) Add ¶ func (t *Tar) Add(srcPath, destPath string) error func (*Tar) Remove ¶ func (t *Tar) Remove(path string) bool func (*Tar) Write ¶ func (t *Tar) Write(writer io.Writer) error Source Files ¶ View all Source files gzip.go s2.go tar.go tree.go Click to show internal directories. Click to hide internal directories.