WriteFileMap uploads chunks of r to bs while populating file and finally uploading file's Blob. The returned blobref is of file's JSON blob.
(ctx context.Context, bs blobserver.StatReceiver, file *Builder, r io.Reader)
| 90 | // finally uploading file's Blob. The returned blobref is of file's |
| 91 | // JSON blob. |
| 92 | func WriteFileMap(ctx context.Context, bs blobserver.StatReceiver, file *Builder, r io.Reader) (blob.Ref, error) { |
| 93 | return writeFileMapRolling(ctx, bs, file, r) |
| 94 | } |
| 95 | |
| 96 | func serverHasBlob(ctx context.Context, bs blobserver.BlobStatter, br blob.Ref) (have bool, err error) { |
| 97 | _, err = blobserver.StatBlob(ctx, bs, br) |