MCPcopy
hub / github.com/kopia/kopia / GetContent

Method GetContent

internal/cache/content_cache_passthrough.go:17–22  ·  view source on GitHub ↗
(ctx context.Context, contentID string, blobID blob.ID, offset, length int64, output *gather.WriteBuffer)

Source from the content-addressed store, hash-verified

15func (c passthroughContentCache) Close(_ context.Context) {}
16
17func (c passthroughContentCache) GetContent(ctx context.Context, contentID string, blobID blob.ID, offset, length int64, output *gather.WriteBuffer) error {
18 _ = contentID
19
20 //nolint:wrapcheck
21 return c.st.GetBlob(ctx, blobID, offset, length, output)
22}
23
24func (c passthroughContentCache) PrefetchBlob(_ context.Context, blobID blob.ID) error {
25 _ = blobID

Callers

nothing calls this directly

Calls 1

GetBlobMethod · 0.65

Tested by

no test coverage detected