Documentation
¶
Index ¶
- func OIDFromLocalID(key *[16]byte, x ID) blobcache.OID
- type Config
- type Env
- type ID
- type Params
- type RefCount
- type System
- func (ls *System) Flush() error
- func (ls *System) GCBlobs(ctx context.Context, lvid ID) error
- func (ls *System) GenerateLocalID() (ID, error)
- func (ls *System) UpNoErr(params Params) *Volume
- func (ls *System) VolumeDestroy(ctx context.Context, vol *Volume) error
- func (ls *System) VolumeUp(ctx context.Context, params Params) (*Volume, error)
- type Volume
- func (v *Volume) AccessSubVolume(ctx context.Context, lt blobcache.LinkToken) (blobcache.ActionSet, error)
- func (v *Volume) Await(ctx context.Context, prev []byte, next *[]byte) error
- func (v *Volume) BeginTx(ctx context.Context, tp blobcache.TxParams) (backend.Tx, error)
- func (v *Volume) Down(ctx context.Context) error
- func (v *Volume) GetBackend() blobcache.VolumeBackend[blobcache.OID]
- func (v *Volume) GetParams() blobcache.VolumeConfig
- func (v *Volume) Key() ID
- func (v *Volume) ReadLinks(ctx context.Context, dst backend.LinkSet) error
- type VolumeLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ID ¶
type ID uint64
ID uniquely identifies a local volume
func LocalIDFromOID ¶
LocalIDFromOID maps an OID to a LocalID It reverses the mapping used by OIDFromLocalID
func ParseLocalID ¶
type System ¶
type System struct {
// contains filtered or unexported fields
}
System manages the local volumes and transactions on those volumes.
func (*System) GCBlobs ¶
GCBlobs walks all of the blob reference counts, and deletes any blobs that have a reference count of 0.
func (*System) GenerateLocalID ¶
func (*System) UpNoErr ¶ added in v0.0.3
UpNoErr is like Up, but it always succeeds. Up implements volume.System.Up, but this implementation never errors, and doesn't need the context.
func (*System) VolumeDestroy ¶ added in v0.4.0
type Volume ¶
type Volume struct {
// contains filtered or unexported fields
}
func (*Volume) AccessSubVolume ¶
func (*Volume) GetBackend ¶
func (v *Volume) GetBackend() blobcache.VolumeBackend[blobcache.OID]
func (*Volume) GetParams ¶
func (v *Volume) GetParams() blobcache.VolumeConfig
type VolumeLink ¶
func ParseVolumeLink ¶
func ParseVolumeLink(k, v []byte) (VolumeLink, error)
ParseVolumeLink parses an entry from the LOCAL_VOLUME_LINKS table.
Click to show internal directories.
Click to hide internal directories.