Versions in this module Expand all Collapse all v0 v0.0.2 Dec 15, 2025 Changes in this version + func CheckName(name string) error + func ExistsUnit(ctx context.Context, s Exists, cid blobcache.CID) (bool, error) + func IsValidName(name string) bool type Change + Next Value + Prev Value + type Exists interface + Exists func(ctx context.Context, cids []blobcache.CID, dst []bool) error + type Initializer interface + Init func(ctx context.Context, s bcsdk.WO) ([]byte, error) + type KV interface + Delete func(ctx context.Context, s bcsdk.RW, root []byte, key K) ([]byte, error) + Get func(ctx context.Context, s bcsdk.RO, root []byte, key K, dst *V) (bool, error) + Put func(ctx context.Context, s bcsdk.RW, root []byte, key K, value V) ([]byte, error) + type NSClient struct + Schema Namespace + Service blobcache.Service + func (nsc *NSClient) CreateAt(ctx context.Context, nsh blobcache.Handle, name string, ...) (*blobcache.Handle, error) + func (nsc *NSClient) Delete(ctx context.Context, nsh blobcache.Handle, name string) error + func (nsc *NSClient) GC(ctx context.Context, volh blobcache.Handle) error + func (nsc *NSClient) Get(ctx context.Context, volh blobcache.Handle, name string, dst *NSEntry) (bool, error) + func (nsc *NSClient) Init(ctx context.Context, volh blobcache.Handle) error + func (nsc *NSClient) List(ctx context.Context, volh blobcache.Handle) ([]NSEntry, error) + func (nsc *NSClient) ListNames(ctx context.Context, volh blobcache.Handle) ([]string, error) + func (nsc *NSClient) OpenAt(ctx context.Context, nsh blobcache.Handle, name string, ...) (*blobcache.Handle, error) + func (nsc *NSClient) Put(ctx context.Context, nsh blobcache.Handle, name string, volh blobcache.Handle, ...) error + type NSEntry struct + Name string + Rights blobcache.ActionSet + Target blobcache.OID + func (ent *NSEntry) Link() Link + type Namespace interface + NSDelete func(ctx context.Context, s bcsdk.RW, root []byte, name string) ([]byte, error) + NSGet func(ctx context.Context, s bcsdk.RO, root []byte, name string, dst *NSEntry) (bool, error) + NSList func(ctx context.Context, s bcsdk.RO, root []byte) ([]NSEntry, error) + NSPut func(ctx context.Context, s bcsdk.RW, root []byte, ent NSEntry) ([]byte, error) + type Syncer interface + Sync func(ctx context.Context, rs bcsdk.RO, ws bcsdk.WO, rootData []byte) error + type Value struct + Cell []byte + Store bcsdk.RO + type VisitAll interface + VisitAll func(ctx context.Context, s bcsdk.RO, root []byte, ...) error v0.0.1 Nov 25, 2025 Changes in this version + type Change struct + NextCell []byte + NextStore RO + PrevCell []byte + PrevStore RO + type Constructor = func(params json.RawMessage, mkSchema Factory) (Schema, error) + type Factory = func(blobcache.SchemaSpec) (Schema, error) + type Link struct + Rights blobcache.ActionSet + Target blobcache.OID + type MemStore struct + func NewMem(hf blobcache.HashFunc, maxSize int) *MemStore + func NewTestStore(t testing.TB) *MemStore + func (ms *MemStore) Delete(ctx context.Context, cids []blobcache.CID) error + func (ms *MemStore) Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error + func (ms *MemStore) Get(ctx context.Context, cid blobcache.CID, buf []byte) (int, error) + func (ms *MemStore) Hash(data []byte) blobcache.CID + func (ms *MemStore) Len() int + func (ms *MemStore) MaxSize() int + func (ms *MemStore) Post(ctx context.Context, data []byte) (blobcache.CID, error) + type None struct + func (None) ValidateChange(ctx context.Context, change Change) error + type Opener interface + OpenAs func(ctx context.Context, s RO, root []byte, peer blobcache.PeerID) (blobcache.ActionSet, error) + type RO interface + Exists func(ctx context.Context, cids []blobcache.CID, dst []bool) error + Get func(ctx context.Context, cid blobcache.CID, buf []byte) (int, error) + Hash func(data []byte) blobcache.CID + MaxSize func() int + type RW interface + type RWD interface + Delete func(ctx context.Context, cids []blobcache.CID) error + type Schema interface + ValidateChange func(ctx context.Context, change Change) error + func NoneConstructor(_ json.RawMessage, _ Factory) (Schema, error) + type Spec = blobcache.SchemaSpec + type WO interface + Exists func(ctx context.Context, cids []blobcache.CID, dst []bool) error + Hash func(data []byte) blobcache.CID + MaxSize func() int + Post func(ctx context.Context, data []byte) (blobcache.CID, error)