Documentation
¶
Overview ¶
Package jsonns provides a simple namespace implementation. All entries are stored in the root of the volume.
Index ¶
- Constants
- 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
- type Schema
- 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
- 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
Constants ¶
View Source
const SchemaName blobcache.SchemaName = "blobcache/jsonns"
Variables ¶
This section is empty.
Functions ¶
func Constructor ¶
Types ¶
type Schema ¶
type Schema struct{}
Click to show internal directories.
Click to hide internal directories.