BlobObjects returns an unsorted BlobIter with all the blobs in the repository.
()
| 1454 | |
| 1455 | // BlobObjects returns an unsorted BlobIter with all the blobs in the repository. |
| 1456 | func (r *Repository) BlobObjects() (*object.BlobIter, error) { |
| 1457 | iter, err := r.Storer.IterEncodedObjects(plumbing.BlobObject) |
| 1458 | if err != nil { |
| 1459 | return nil, err |
| 1460 | } |
| 1461 | |
| 1462 | return object.NewBlobIter(r.Storer, iter), nil |
| 1463 | } |
| 1464 | |
| 1465 | // TagObject returns a Tag with the given hash. If not found |
| 1466 | // plumbing.ErrObjectNotFound is returned. This method only returns |