ReceiveBlob accepts a newly uploaded blob and writes it to permanent storage. Implementations of BlobReceiver downstream of the HTTP server can trust that the source isn't larger than MaxBlobSize and that its digest matches the provided blob ref. (If not, the read of the source will fail before EOF
(ctx context.Context, br blob.Ref, source io.Reader)
| 53 | // take care of notifying the BlobReceiver's "BlobHub" |
| 54 | // notification bus for observers. |
| 55 | ReceiveBlob(ctx context.Context, br blob.Ref, source io.Reader) (blob.SizedRef, error) |
| 56 | } |
| 57 | |
| 58 | // BlobStatter is the interface for checking the size and existence of blobs. |
no outgoing calls