Documentation
¶
Overview ¶
Package schema implements Schemas for blobcache volumes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container interface { Schema // ReadLinks returns a list of links for a given root. ReadLinks(ctx context.Context, s RO, root []byte, dst map[blobcache.OID]blobcache.ActionSet) error }
Container is a Schema which can store Links to other volumes.
type Link ¶
type Link struct { // Target is the OID of the volume being referenced. Target blobcache.OID // Rights are the set of actions on the target, which are granted to the caller. Rights blobcache.ActionSet }
Link is a reference from one volume to another.
type None ¶
type None struct{}
None is a Schema which does not impose any constraints on the contents of a volume.
type RO ¶
type RO interface { Get(ctx context.Context, cid blobcache.CID, buf []byte) (int, error) Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error MaxSize() int }
RO is read-only Store methods
Click to show internal directories.
Click to hide internal directories.