Open creates new ObjectReader for reading given object from a repository.
(ctx context.Context, r contentReader, objectID ID)
| 14 | |
| 15 | // Open creates new ObjectReader for reading given object from a repository. |
| 16 | func Open(ctx context.Context, r contentReader, objectID ID) (Reader, error) { |
| 17 | return openAndAssertLength(ctx, r, objectID, -1) |
| 18 | } |
| 19 | |
| 20 | // VerifyObject ensures that all objects backing ObjectID are present in the repository |
| 21 | // and returns the content IDs of which it is composed. |