MCPcopy
hub / github.com/kopia/kopia / OpenObject

Method OpenObject

repo/repository.go:33–33  ·  view source on GitHub ↗
(ctx context.Context, id object.ID)

Source from the content-addressed store, hash-verified

31//nolint:interfacebloat
32type Repository interface {
33 OpenObject(ctx context.Context, id object.ID) (object.Reader, error)
34 VerifyObject(ctx context.Context, id object.ID) ([]content.ID, error)
35 GetManifest(ctx context.Context, id manifest.ID, data any) (*manifest.EntryMetadata, error)
36 FindManifests(ctx context.Context, labels map[string]string) ([]*manifest.EntryMetadata, error)

Callers 15

runMethod · 0.65
mustReadObjectFunction · 0.65
mustGetObjectNotFoundFunction · 0.65
handleObjectGetFunction · 0.65
verifyFunction · 0.65
TestFormatsFunction · 0.65
verifyNotFoundFunction · 0.65
verifyObjectReadableFunction · 0.65
verifyObjectNotFoundFunction · 0.65
SnapshotRestoreMethod · 0.65

Calls

no outgoing calls

Tested by 9

mustReadObjectFunction · 0.52
mustGetObjectNotFoundFunction · 0.52
verifyFunction · 0.52
TestFormatsFunction · 0.52
verifyNotFoundFunction · 0.52
verifyObjectReadableFunction · 0.52
verifyObjectNotFoundFunction · 0.52