Versions in this module Expand all Collapse all v0 v0.5.0 Feb 5, 2016 Changes in this version + var CRCTable = crc64.MakeTable(crc64.ISO) + var ErrDuplicatePath = errors.New("duplicates of file paths not supported") + type Entries []Entry + func (e Entries) Len() int + func (e Entries) Less(i, j int) bool + func (e Entries) Swap(i, j int) + type Entry struct + Name string + NameRaw []byte + Payload []byte + Position int + Size int64 + Type Type + func (e *Entry) GetName() string + func (e *Entry) GetNameBytes() []byte + func (e *Entry) SetName(name string) + func (e *Entry) SetNameBytes(name []byte) + type FileGetPutter interface + func NewBufferFileGetPutter() FileGetPutter + type FileGetter interface + Get func(filename string) (output io.ReadCloser, err error) + func NewPathFileGetter(relpath string) FileGetter + type FilePutter interface + Put func(filename string, input io.Reader) (size int64, checksum []byte, err error) + func NewDiscardFilePutter() FilePutter + type Packer interface + AddEntry func(e Entry) (int, error) + func NewJSONPacker(w io.Writer) Packer + type Type int + const FileType + const SegmentType + type Unpacker interface + Next func() (*Entry, error) + func NewJSONUnpacker(r io.Reader) Unpacker