The hash of any object
If 'ALL' all objects will be loaded and returned. If 'Object' only Objects (unversioned and specific versions) will be loaded If 'IdObject' only IdObjects will be loaded If 'BLOB' only BLOBs will be loaded
The object. Objects that weren't loaded have UnknownType (depends on categroy parameter) an complete failures on loading will have UnkownType but with the err field set.
This is a function that calls getObject / getIdObject or readBlob based on the type the object has.