Documentation
¶
Index ¶
- func CreateOnSameHost(ctx context.Context, s blobcache.Service, base blobcache.Handle, ...) (*blobcache.Handle, *blobcache.FQOID, error)
- func ExistsSingle(ctx context.Context, s interface{ ... }, txh Handle, cid CID) (bool, error)
- type ActionSet
- type CID
- type Handle
- type OID
- type Tx
- func (tx *Tx) Abort(ctx context.Context) error
- func (tx *Tx) Commit(ctx context.Context) error
- func (tx *Tx) Copy(ctx context.Context, srcs []*Tx, cids []CID, success []bool) error
- func (tx *Tx) Delete(ctx context.Context, cids []CID) error
- func (tx *Tx) Exists(ctx context.Context, cids []CID, exists []bool) error
- func (tx *Tx) Get(ctx context.Context, cid CID, buf []byte) (int, error)
- func (tx *Tx) Hash(data []byte) CID
- func (tx *Tx) IsVisited(ctx context.Context, cids []CID, yesVisited []bool) error
- func (tx *Tx) KeepAlive(ctx context.Context) error
- func (tx *Tx) Link(ctx context.Context, target blobcache.Handle, mask ActionSet) error
- func (tx *Tx) Load(ctx context.Context, dst *[]byte) error
- func (tx *Tx) MaxSize() int
- func (tx *Tx) Post(ctx context.Context, data []byte) (CID, error)
- func (tx *Tx) Save(ctx context.Context, src []byte) error
- func (tx *Tx) Unlink(ctx context.Context, targets []OID) error
- func (tx *Tx) Visit(ctx context.Context, cids []CID) error
- func (tx *Tx) VisitLinks(ctx context.Context, targets []OID) error
- type TxSalt
- func (tx *TxSalt) Abort(ctx context.Context) error
- func (tx *TxSalt) Commit(ctx context.Context) error
- func (tx *TxSalt) Delete(ctx context.Context, cid CID) error
- func (tx *TxSalt) Exists(ctx context.Context, cid CID) (bool, error)
- func (tx *TxSalt) Get(ctx context.Context, cid CID, buf []byte, opts blobcache.GetOpts) (int, error)
- func (tx *TxSalt) Hash(salt *CID, data []byte) CID
- func (tx *TxSalt) KeepAlive(ctx context.Context) error
- func (tx *TxSalt) Load(ctx context.Context, dst *[]byte) error
- func (tx *TxSalt) MaxSize() int
- func (tx *TxSalt) Post(ctx context.Context, data []byte, opts blobcache.PostOpts) (CID, error)
- func (tx *TxSalt) Save(ctx context.Context, src []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx is a convenience type for managing a transaction within a Service.
func BeginTx ¶
func BeginTx(ctx context.Context, s blobcache.Service, volH blobcache.Handle, txp blobcache.TxParams) (*Tx, error)
BeginTx begins a new transaction and returns the Tx type.
type TxSalt ¶
type TxSalt struct {
// contains filtered or unexported fields
}
TxSalt is a convenience type for managing a salted transaction within a Service.
func BeginTxSalt ¶
func BeginTxSalt(ctx context.Context, s blobcache.Service, volH Handle, txp blobcache.TxParams) (*TxSalt, error)
BeginTxSalt is the salted variant of BeginTx.
Click to show internal directories.
Click to hide internal directories.