(ctx context.Context, ref blob.Ref, offset, length int64)
| 58 | } |
| 59 | |
| 60 | func (tf *Fetcher) SubFetch(ctx context.Context, ref blob.Ref, offset, length int64) (io.ReadCloser, error) { |
| 61 | if tf.FetchErr != nil { |
| 62 | if err := tf.FetchErr(); err != nil { |
| 63 | return nil, err |
| 64 | } |
| 65 | } |
| 66 | rc, err := tf.Storage.SubFetch(ctx, ref, offset, length) |
| 67 | if err != nil { |
| 68 | return rc, err |
| 69 | } |
| 70 | return rc, nil |
| 71 | } |
| 72 | |
| 73 | func (tf *Fetcher) ReceiveBlob(ctx context.Context, br blob.Ref, source io.Reader) (blob.SizedRef, error) { |
| 74 | sb, err := tf.Storage.ReceiveBlob(ctx, br, source) |
nothing calls this directly
no test coverage detected