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

Method PrefetchObjects

repo/repository.go:263–266  ·  view source on GitHub ↗

PrefetchObjects brings the requested objects into the cache.

(ctx context.Context, objectIDs []object.ID, hint string)

Source from the content-addressed store, hash-verified

261
262// PrefetchObjects brings the requested objects into the cache.
263func (r *directRepository) PrefetchObjects(ctx context.Context, objectIDs []object.ID, hint string) ([]content.ID, error) {
264 //nolint:wrapcheck
265 return object.PrefetchBackingContents(ctx, r.cmgr, objectIDs, hint)
266}
267
268// ListActiveSessions returns the map of active sessions.
269func (r *directRepository) ListActiveSessions(ctx context.Context) (map[content.SessionID]*content.SessionInfo, error) {

Callers

nothing calls this directly

Calls 1

PrefetchBackingContentsFunction · 0.92

Tested by

no test coverage detected