MCPcopy
hub / github.com/perkeep/perkeep / Fetch

Method Fetch

pkg/blobserver/diskpacked/diskpacked.go:359–361  ·  view source on GitHub ↗
(ctx context.Context, br blob.Ref)

Source from the content-addressed store, hash-verified

357}
358
359func (s *storage) Fetch(ctx context.Context, br blob.Ref) (io.ReadCloser, uint32, error) {
360 return s.fetch(br, 0, -1)
361}
362
363func (s *storage) SubFetch(ctx context.Context, br blob.Ref, offset, length int64) (io.ReadCloser, error) {
364 if offset < 0 || length < 0 {

Callers

nothing calls this directly

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected