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

Method SubFetch

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

SubFetch returns part of a blob. The caller must close the returned io.ReadCloser. The Reader may return fewer than 'length' bytes. Callers should check. The returned error should be: ErrNegativeSubFetch if any of offset or length is negative, or os.ErrNotExist if the blob doesn't exist, or ErrOutOf

(ctx context.Context, ref Ref, offset, length int64)

Source from the content-addressed store, hash-verified

64 // the size of the blob. If the error is ErrUnimplemented, the caller should
65 // treat this Fetcher as if it doesn't implement SubFetcher.
66 SubFetch(ctx context.Context, ref Ref, offset, length int64) (io.ReadCloser, error)
67}
68
69func NewSerialFetcher(fetchers ...Fetcher) Fetcher {

Callers 8

ReadAtMethod · 0.65
testSubFetcherMethod · 0.65
SubFetchMethod · 0.65
SubFetchMethod · 0.65
TestReindexFunction · 0.65
initCurMethod · 0.65
FetchMethod · 0.65
SubFetchMethod · 0.65

Implementers 9

storagepkg/blobserver/diskpacked/diskpacked.g
Storagepkg/blobserver/files/files.go
azureStoragepkg/blobserver/azure/azure.go
Storagepkg/blobserver/memory/mem.go
s3Storagepkg/blobserver/s3/s3.go
Storagepkg/blobserver/google/cloudstorage/sto
Storagepkg/blobserver/proxycache/proxycache.g
storagepkg/blobserver/blobpacked/blobpacked.g
Fetcherpkg/test/fetcher.go

Calls

no outgoing calls

Tested by 1

TestReindexFunction · 0.52