Versions in this module Expand all Collapse all v0 v0.0.2 Dec 15, 2025 Changes in this version + const SchemaName + func Constructor(_ json.RawMessage, _ schema.Factory) (schema.Schema, error) + func GC(ctx context.Context, svc blobcache.Service, volh blobcache.Handle) error + func TestSuite(t *testing.T, ...) + type Entry = schema.NSEntry + type Schema struct + func (sch Schema) NSDelete(ctx context.Context, s schema.RW, root []byte, name string) ([]byte, error) + func (sch Schema) NSGet(ctx context.Context, s schema.RO, root []byte, name string, dst *Entry) (bool, error) + func (sch Schema) NSList(ctx context.Context, s schema.RO, root []byte) ([]Entry, error) + func (sch Schema) NSPut(ctx context.Context, s schema.RW, root []byte, ent Entry) ([]byte, error) + func (sch Schema) OpenAs(ctx context.Context, s schema.RO, root []byte, peer blobcache.PeerID) (blobcache.ActionSet, error) + func (sch Schema) ValidateChange(ctx context.Context, change schema.Change) error + type Tx struct + Root []byte + Schema Schema + Tx *bcsdk.Tx + func (ns *Tx) Commit(ctx context.Context) error + func (ns *Tx) ListEntries(ctx context.Context) ([]Entry, error) + func (ns *Tx) ListNames(ctx context.Context) ([]string, error) + func (ns *Tx) NSDelete(ctx context.Context, name string) error + func (ns *Tx) NSGet(ctx context.Context, name string) (*Entry, error) + func (ns *Tx) NSPut(ctx context.Context, name string, target blobcache.OID, ...) error + func (ns *Tx) VisitAll(ctx context.Context) error