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)
| 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 | |
| 69 | func NewSerialFetcher(fetchers ...Fetcher) Fetcher { |
no outgoing calls