Documentation
¶
Index ¶
- type System
- type Tx
- type UnsaltedStore
- func (v UnsaltedStore) Delete(ctx context.Context, cids []blobcache.CID) error
- func (v UnsaltedStore) Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error
- func (v UnsaltedStore) Get(ctx context.Context, cid blobcache.CID, buf []byte) (int, error)
- func (v UnsaltedStore) Hash(data []byte) blobcache.CID
- func (v UnsaltedStore) MaxSize() int
- func (v UnsaltedStore) Post(ctx context.Context, data []byte) (blobcache.CID, error)
- type Vault
- type VaultTx
- func (v *VaultTx) Abort(ctx context.Context) error
- func (v *VaultTx) AllowLink(ctx context.Context, subvol blobcache.Handle) error
- func (v *VaultTx) Commit(ctx context.Context) error
- func (v *VaultTx) Delete(ctx context.Context, cids []blobcache.CID) error
- func (v *VaultTx) Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error
- func (v *VaultTx) Get(ctx context.Context, cid blobcache.CID, buf []byte, opts blobcache.GetOpts) (int, error)
- func (v *VaultTx) Hash(salt *blobcache.CID, data []byte) blobcache.CID
- func (v *VaultTx) IsVisited(ctx context.Context, cids []blobcache.CID, dst []bool) error
- func (v *VaultTx) Load(ctx context.Context, dst *[]byte) error
- func (v *VaultTx) MaxSize() int
- func (v *VaultTx) Post(ctx context.Context, data []byte, opts blobcache.PostOpts) (blobcache.CID, error)
- func (v *VaultTx) Save(ctx context.Context, src []byte) error
- func (v *VaultTx) Visit(ctx context.Context, cids []blobcache.CID) error
- func (tx *VaultTx) Volume() Volume
- type Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tx ¶
type Tx interface { Commit(ctx context.Context) error Abort(ctx context.Context) error Save(ctx context.Context, src []byte) error Load(ctx context.Context, dst *[]byte) error Post(ctx context.Context, data []byte, opts blobcache.PostOpts) (blobcache.CID, error) Get(ctx context.Context, cid blobcache.CID, buf []byte, opts blobcache.GetOpts) (int, error) Delete(ctx context.Context, cids []blobcache.CID) error Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error IsVisited(ctx context.Context, cids []blobcache.CID, dst []bool) error Visit(ctx context.Context, cids []blobcache.CID) error MaxSize() int Hash(salt *blobcache.CID, data []byte) blobcache.CID // AllowLink creates adds a handle to prove access to a volume. AllowLink(ctx context.Context, subvol blobcache.Handle) error }
Tx is a consistent view of a volume, during a transaction.
type UnsaltedStore ¶
type UnsaltedStore struct {
// contains filtered or unexported fields
}
This is an adapter to a store, since we added salts to the API.
func NewUnsaltedStore ¶
func NewUnsaltedStore(inner Tx) *UnsaltedStore
func ViewUnsalted ¶
func (UnsaltedStore) MaxSize ¶
func (v UnsaltedStore) MaxSize() int
Click to show internal directories.
Click to hide internal directories.