Documentation
¶
Index ¶
- Constants
- func Copy(ctx context.Context, src RO, dst WO, cids ...blobcache.CID) error
- func ExistsUnit(ctx context.Context, s Exister, cid blobcache.CID) (bool, error)
- func Hash(x []byte) blobcache.CID
- func NewMem() *schema.MemStore
- func NewMemSize(s int) *schema.MemStore
- type CID
- type CopyFrom
- type Exister
- type MemSet
- type Overlay
- type RO
- type RW
- type RWD
- type Set
- type Union
- type Void
- type WO
Constants ¶
View Source
const HashAlgo = blobcache.HashAlgo_BLAKE2b_256
View Source
const MaxSize = 1 << 21
Variables ¶
This section is empty.
Functions ¶
func NewMemSize ¶ added in v0.4.0
Types ¶
type Overlay ¶ added in v0.4.0
type Overlay struct {
// contains filtered or unexported fields
}
type RO ¶ added in v0.4.0
type RO interface {
Get(ctx context.Context, cid blobcache.CID, buf []byte) (int, error)
Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error
MaxSize() int
}
RO is used for read-only operations.
func AssertReadOnly ¶
AssertReadOnly returns a new store backup by x, which will panic if it is modified.
type Union ¶ added in v0.4.0
type Union []RO
Click to show internal directories.
Click to hide internal directories.