Documentation
¶
Index ¶
- type Params
- type Queue
- type QueueParams
- type System
- func (sys *System) CreateQueue(ctx context.Context, ep blobcache.Endpoint, qspec blobcache.QueueSpec) (*Queue, *blobcache.QueueInfo, error)
- func (sys *System) OpenFrom(ctx context.Context, base *Volume, token blobcache.LinkToken, ...) (blobcache.ActionSet, *Volume, error)
- func (sys *System) QueueUp(ctx context.Context, p *blobcache.QueueBackend_Remote) (*Queue, error)
- func (sys *System) SubToVol(ctx context.Context, vol *Volume, q backend.Queue, spec blobcache.VolSubSpec) error
- func (sys *System) VolumeDestroy(ctx context.Context, vol *Volume) error
- func (sys *System) VolumeDown(ctx context.Context, vol *Volume) error
- func (sys *System) VolumeUp(ctx context.Context, p Params) (*Volume, error)
- type Tx
- func (tx *Tx) Abort(ctx context.Context) error
- func (tx *Tx) Commit(ctx context.Context) error
- func (tx *Tx) Delete(ctx context.Context, cids []blobcache.CID) error
- func (tx *Tx) Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error
- func (tx *Tx) Get(ctx context.Context, cid blobcache.CID, buf []byte, opts blobcache.GetOpts) (int, error)
- func (tx *Tx) Hash(salt *blobcache.CID, data []byte) blobcache.CID
- func (tx *Tx) IsVisited(ctx context.Context, cids []blobcache.CID, dst []bool) error
- func (tx *Tx) Link(ctx context.Context, svoid blobcache.OID, rights blobcache.ActionSet, ...) (*blobcache.LinkToken, error)
- func (tx *Tx) Load(ctx context.Context, dst *[]byte) error
- func (tx *Tx) MaxSize() int
- func (tx *Tx) Params() blobcache.TxParams
- func (tx *Tx) Post(ctx context.Context, data []byte, opts blobcache.PostOpts) (blobcache.CID, error)
- func (tx *Tx) Save(ctx context.Context, src []byte) error
- func (tx *Tx) Unlink(ctx context.Context, targets []blobcache.LinkToken) error
- func (tx *Tx) Visit(ctx context.Context, cids []blobcache.CID) error
- func (tx *Tx) VisitLinks(ctx context.Context, targets []blobcache.LinkToken) error
- func (tx *Tx) Volume() backend.Volume
- type Volume
- func (v *Volume) AccessSubVolume(ctx context.Context, ltok blobcache.LinkToken) (blobcache.ActionSet, error)
- func (v *Volume) BeginTx(ctx context.Context, spec blobcache.TxParams) (backend.Tx, error)
- func (v *Volume) Endpoint() blobcache.Endpoint
- func (v *Volume) GetBackend() blobcache.VolumeBackend[blobcache.OID]
- func (v *Volume) GetParams() blobcache.VolumeConfig
- func (v *Volume) Handle() blobcache.Handle
- func (v *Volume) VolumeDown(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params = blobcache.VolumeBackend_Remote
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
Queue is a remote queue.
func (*Queue) Config ¶
func (q *Queue) Config() blobcache.QueueConfig
type QueueParams ¶
type QueueParams = blobcache.QueueBackend_Remote
type System ¶
type System struct {
// contains filtered or unexported fields
}
func (*System) CreateQueue ¶
func (sys *System) CreateQueue(ctx context.Context, ep blobcache.Endpoint, qspec blobcache.QueueSpec) (*Queue, *blobcache.QueueInfo, error)
CreateQueue creates a queue on the remote node and returns a local proxy.
func (*System) VolumeDestroy ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx is a transaction on a remote volume.
func (*Tx) VisitLinks ¶
type Volume ¶
type Volume struct {
// contains filtered or unexported fields
}
Volume is a remote volume.
func (*Volume) AccessSubVolume ¶
func (*Volume) GetBackend ¶
func (v *Volume) GetBackend() blobcache.VolumeBackend[blobcache.OID]
func (*Volume) GetParams ¶
func (v *Volume) GetParams() blobcache.VolumeConfig
Click to show internal directories.
Click to hide internal directories.