MCPcopy
hub / github.com/kopia/kopia / GetBlob

Method GetBlob

internal/cache/cache_storage.go:25–25  ·  view source on GitHub ↗
(ctx context.Context, id blob.ID, offset, length int64, out blob.OutputBuffer)

Source from the content-addressed store, hash-verified

23// Storage is the storage interface required by the cache and is a subset of methods implemented by the filesystem Storage.
24type Storage interface {
25 GetBlob(ctx context.Context, id blob.ID, offset, length int64, out blob.OutputBuffer) error
26 GetMetadata(ctx context.Context, id blob.ID) (blob.Metadata, error)
27 PutBlob(ctx context.Context, id blob.ID, data blob.Bytes, opts blob.PutOptions) error
28 DeleteBlob(ctx context.Context, id blob.ID) error

Callers 15

handleRepoExistsFunction · 0.95
verifyContentCacheFunction · 0.65
fetchBlobInternalMethod · 0.65
GetContentMethod · 0.65
getPartialMethod · 0.65
readBlobsFromCacheMethod · 0.65
ValidateProviderFunction · 0.65
getBlobWorkerMethod · 0.65
AssertGetBlobFunction · 0.65

Calls

no outgoing calls

Tested by 2

verifyContentCacheFunction · 0.52