MCPcopy Index your code
hub / github.com/kopia/kopia / OpenObject

Method OpenObject

repo/repository.go:217–220  ·  view source on GitHub ↗

OpenObject opens the reader for a given object, returns object.ErrNotFound.

(ctx context.Context, id object.ID)

Source from the content-addressed store, hash-verified

215
216// OpenObject opens the reader for a given object, returns object.ErrNotFound.
217func (r *directRepository) OpenObject(ctx context.Context, id object.ID) (object.Reader, error) {
218 //nolint:wrapcheck
219 return object.Open(ctx, r.cmgr, id)
220}
221
222// VerifyObject verifies that the given object is stored properly in a repository and returns backing content IDs.
223func (r *directRepository) VerifyObject(ctx context.Context, id object.ID) ([]content.ID, error) {

Callers

nothing calls this directly

Calls 1

OpenFunction · 0.92

Tested by

no test coverage detected