Documentation ¶
Overview ¶
Package mem implements an in-memory blob store.
Index ¶
- type Store
- func (s *Store) AnchorMapRef(_ context.Context) (bs.Ref, error)
- func (s *Store) Delete(_ context.Context, ref bs.Ref) error
- func (s *Store) Get(_ context.Context, ref bs.Ref) (bs.Blob, error)
- func (s *Store) ListRefs(ctx context.Context, start bs.Ref, f func(bs.Ref) error) error
- func (s *Store) Put(_ context.Context, b bs.Blob) (bs.Ref, bool, error)
- func (s *Store) UpdateAnchorMap(ctx context.Context, f anchor.UpdateFunc) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a memory-based implementation of a blob store.
func (*Store) AnchorMapRef ¶
AnchorMapRef implements anchor.Getter.
func (*Store) UpdateAnchorMap ¶
UpdateAnchorMap implements anchor.Store. It uses optimistic locking and can return anchor.ErrUpdateConflict.
Click to show internal directories.
Click to hide internal directories.