Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2021 Changes in this version + const HashSize + var Set = wire.NewSet(ProvideStore) + type Blob struct + func (b *Blob) Close() error + func (b *Blob) Hash() Hash + func (b *Blob) Length() int64 + func (b *Blob) Read(buf []byte) (int, error) + func (b *Blob) Seek(offset int64, whence int) (int64, error) + func (b *Blob) String() string + func (b *Blob) WriteN(w io.Writer, count int64) (int64, error) + func (b *Blob) WriteTo(w io.Writer) (written int64, err error) + func (m Blob) MarshalBinary() ([]byte, error) + func (m Blob) UnmarshalBinary(data []byte) error + type Hash [HashSize]byte + func (h *Hash) String() string + func (h *Hash) UnmarshalBinary(data []byte) error + func (h Hash) MarshalBinary() ([]byte, error) + type Store struct + func ProvideStore(ctx context.Context, cache *cache.Cache, config *config.Config, ...) (*Store, func()) + func (s *Store) CommitRope(ctx context.Context, tID *tenant.ID, ropeID uuid.UUID, hash Hash) error + func (s *Store) EnsureBlob(ctx context.Context, tID *tenant.ID, data io.Reader) (Hash, error) + func (s *Store) InsertToRope(ctx context.Context, tID *tenant.ID, ropeID uuid.UUID, data io.Reader, ...) (int64, error) + func (s *Store) OpenBlob(ctx context.Context, tID *tenant.ID, hash Hash) (*Blob, error)