Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2018 Changes in this version + const Trailer + var Debug = func(string, ...interface{}) + var TrailerRecord = StaticRecord(nil, Info{ ... }) + func AllEqual(r []Record, s []Record) bool + func Concat(w RecordWriter, r RecordReader, transform func(Record) Record) error + func CreateFile(f Record) error + func CreateFileInRoot(f Record, rootDir string) error + func Equal(r Record, s Record) bool + func ForEachRecord(rr RecordReader, fun func(Record) error) error + func MakeAllReproducible(files []Record) + func NewLazyFile(name string) io.ReaderAt + func Normalize(path string) string + func Passthrough(r RecordReader, w RecordWriter) error + func ReaderAtEqual(r1, r2 io.ReaderAt) bool + func WriteRecords(w RecordWriter, files []Record) error + func WriteTrailer(w RecordWriter) error + type Archive struct + Files map[string]Record + Order []string + func InMemArchive() *Archive + func ReadArchive(rr RecordReader) (*Archive, error) + func (a *Archive) Contains(r Record) bool + func (a *Archive) Reader() RecordReader + func (a *Archive) WriteRecord(r Record) error + type DedupWriter struct + func (dw *DedupWriter) WriteRecord(rec Record) error + type EOFReader struct + func (r EOFReader) ReadRecord() (Record, error) + type Info struct + Dev uint64 + FileSize uint64 + GID uint64 + Ino uint64 + MTime uint64 + Major uint64 + Minor uint64 + Mode uint64 + NLink uint64 + Name string + Rmajor uint64 + Rminor uint64 + UID uint64 + func (i Info) String() string + type Record struct + func CharDev(name string, perm uint64, rmajor, rminor uint64) Record + func Directory(name string, mode uint64) Record + func GetRecord(path string) (Record, error) + func MakeReproducible(r Record) Record + func ReadAllRecords(rr RecordReader) ([]Record, error) + func StaticFile(name string, content string, perm uint64) Record + func StaticRecord(contents []byte, info Info) Record + func Symlink(name string, target string) Record + type RecordFormat interface + Reader func(r io.ReaderAt) RecordReader + Writer func(w io.Writer) RecordWriter + var Newc RecordFormat = newc{} + func Format(name string) (RecordFormat, error) + type RecordReader interface + ReadRecord func() (Record, error) + type RecordWriter interface + WriteRecord func(Record) error + func NewDedupWriter(rw RecordWriter) RecordWriter Incompatible versions in this module v4.0.0+incompatible Jan 27, 2019 v3.0.0+incompatible Nov 21, 2018 v2.0.0+incompatible Oct 1, 2018