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)
| 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 |
no outgoing calls