Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2015 Changes in this version + type Blob struct + ID backend.ID + Length uint32 + Offset uint + Type BlobType + func (e Blob) GetReader(rd io.ReadSeeker) (io.Reader, error) + type BlobType uint8 + const Data + const Tree + func (t *BlobType) UnmarshalJSON(buf []byte) error + func (t BlobType) MarshalJSON() ([]byte, error) + func (t BlobType) String() string + type Packer struct + func NewPacker(k *crypto.Key, w io.Writer) *Packer + func (p *Packer) Add(t BlobType, id backend.ID, rd io.Reader) (int64, error) + func (p *Packer) Blobs() []Blob + func (p *Packer) Count() int + func (p *Packer) Finalize() (bytesWritten uint, err error) + func (p *Packer) ID() backend.ID + func (p *Packer) Size() uint + func (p *Packer) String() string + func (p *Packer) Writer() io.Writer + type Unpacker struct + Entries []Blob + func NewUnpacker(k *crypto.Key, entries []Blob, rd io.ReadSeeker) (*Unpacker, error)