Method
EncodedObject
(t plumbing.ObjectType, h plumbing.Hash)
Source from the content-addressed store, hash-verified
| 132 | } |
| 133 | |
| 134 | func (o *ObjectStorage) EncodedObject(t plumbing.ObjectType, h plumbing.Hash) (plumbing.EncodedObject, error) { |
| 135 | obj, ok := o.Objects[h] |
| 136 | if !ok || (plumbing.AnyObject != t && obj.Type() != t) { |
| 137 | return nil, plumbing.ErrObjectNotFound |
| 138 | } |
| 139 | |
| 140 | return obj, nil |
| 141 | } |
| 142 | |
| 143 | func (o *ObjectStorage) IterEncodedObjects(t plumbing.ObjectType) (storer.EncodedObjectIter, error) { |
| 144 | var series []plumbing.EncodedObject |
Callers
nothing calls this directly
Tested by
no test coverage detected