Versions in this module Expand all Collapse all v0 v0.0.3 Dec 10, 2021 v0.0.2 Dec 9, 2021 Changes in this version + func FileArchive(location string, archive string) error + func FileUnarchive(archive, dest string) error + func StreamArchive(output io.Writer, location string) (err error) + func StreamUnarchive(sr *io.SectionReader, location string) (err error) + func Unarchive(toc []TOCEntry, fetcher HashFetcher, location string) (err error) + type BodyWriter interface + NewChunk func(io.ReadCloser) (func() ([]string, error), error) + type HashFetcher interface + Lookup func(hash string) (io.ReadCloser, error) + type ParallelBodyWriter struct + func NewParallelBodyWriter(numParallel int, cb func(io.ReadCloser) ([]string, error)) *ParallelBodyWriter + func (bw *ParallelBodyWriter) NewChunk(body io.ReadCloser) (func() ([]string, error), error) + type TOCEntry struct + Body []string + DevMajor int + DevMinor int + LinkName string + Mode int64 + Name string + NumLink int + Size int64 + Type string + Xattrs map[string][]byte + func Archive(bw BodyWriter, location string) (toc []TOCEntry, err error)