Documentation
¶
Index ¶
- func OIDFromLocalID(x ID) blobcache.OID
- type Config
- type Env
- type HandleSystem
- type ID
- type LinkSet
- type Params
- type RefCount
- type System
- type Volume
- func (v *Volume) AccessSubVolume(ctx context.Context, target blobcache.OID) (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) (volumes.Tx, error)
- func (v *Volume) GetBackend() blobcache.VolumeBackend[blobcache.OID]
- func (v *Volume) GetParams() blobcache.VolumeConfig
- func (v *Volume) ID() ID
- func (v *Volume) ReadLinks(ctx context.Context, dst volumes.LinkSet) error
- type VolumeLink
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OIDFromLocalID ¶
OIDFromLocalID maps a local volume ID to a Blobcache OID
Types ¶
type HandleSystem ¶
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 Params ¶
type Params struct {
ID ID
Params blobcache.VolumeConfig
}
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 ¶
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.