MCPcopy Create free account
hub / github.com/Azure/peerd / Key

Method Key

pkg/files/store/interface.go:15–15  ·  view source on GitHub ↗

Key tries to find the cache key for the requested content or returns empty.

(c context.Context)

Source from the content-addressed store, hash-verified

13type FilesStore interface {
14 // Key tries to find the cache key for the requested content or returns empty.
15 Key(c context.Context) (key string, d digest.Digest, err error)
16
17 // Open opens the requested file and starts prefetching it. It also returns the size of the file.
18 Open(c context.Context) (File, error)

Callers 2

TestKeyFunction · 0.95
fillMethod · 0.65

Implementers 1

storepkg/files/store/store.go

Calls

no outgoing calls

Tested by 1

TestKeyFunction · 0.76