MCPcopy Index your code
hub / github.com/perkeep/perkeep / Fetch

Method Fetch

pkg/blob/fetcher.go:49–49  ·  view source on GitHub ↗

Fetch returns a blob. If the blob is not found then os.ErrNotExist should be returned for the error (not a wrapped error with a ErrNotExist inside) The contents are not guaranteed to match the digest of the provided Ref (e.g. when streamed over HTTP). Paranoid callers should verify them. The calle

(context.Context, Ref)

Source from the content-addressed store, hash-verified

47 // cancellation should but may not necessarily cause reads from
48 // blob to fail with an error.
49 Fetch(context.Context, Ref) (blob io.ReadCloser, size uint32, err error)
50}
51
52// ErrUnimplemented is returned by optional interfaces when their

Callers 15

fetchViaMethod · 0.65
FetchMethod · 0.65
FromFetcherFunction · 0.65
FetchMethod · 0.65
faultInMethod · 0.65
getNamedMethod · 0.65
FetchMethod · 0.65
TestIsolationFunction · 0.65
FetchMethod · 0.65
FetchMethod · 0.65
FetchMethod · 0.65
TestOptFunction · 0.65

Implementers 15

Clientpkg/client/client.go
serialFetcherpkg/blob/fetcher.go
DirFetcherpkg/blob/fetcher.go
CachingFetcherpkg/cacher/cacher.go
NoImplStoragepkg/blobserver/noimpl.go
remoteStoragepkg/blobserver/remote/remote.go
storagepkg/blobserver/diskpacked/diskpacked.g
nstopkg/blobserver/namespace/ns.go
Storagepkg/blobserver/files/files.go
unionStoragepkg/blobserver/union/union.go
azureStoragepkg/blobserver/azure/azure.go
mongoStoragepkg/blobserver/mongo/mongo.go

Calls

no outgoing calls

Tested by 10

TestIsolationFunction · 0.52
TestOptFunction · 0.52
checkShardMethod · 0.52
TestEvictionFunction · 0.52
fetchOrErrorStringMethod · 0.52
testPackFunction · 0.52
slurpBlobFunction · 0.52
copyBlobFunction · 0.52
TestReaderForeachChunkFunction · 0.52