MCPcopy
hub / github.com/kopia/kopia / Open

Function Open

repo/object/object_reader.go:16–18  ·  view source on GitHub ↗

Open creates new ObjectReader for reading given object from a repository.

(ctx context.Context, r contentReader, objectID ID)

Source from the content-addressed store, hash-verified

14
15// Open creates new ObjectReader for reading given object from a repository.
16func 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.

Callers 10

OpenObjectMethod · 0.92
OpenObjectMethod · 0.92
verifyFullFunction · 0.70
verifyIndirectBlockFunction · 0.70
TestConcatenateFunction · 0.70
TestReaderFunction · 0.70
verifyFunction · 0.70
TestSeekFunction · 0.70

Calls 1

openAndAssertLengthFunction · 0.85

Tested by 7

verifyFullFunction · 0.56
verifyIndirectBlockFunction · 0.56
TestConcatenateFunction · 0.56
TestReaderFunction · 0.56
verifyFunction · 0.56
TestSeekFunction · 0.56