MCPcopy
hub / github.com/kopia/kopia / Protect

Method Protect

internal/cacheprot/storage_protection.go:27–30  ·  view source on GitHub ↗
(_ string, input gather.Bytes, output *gather.WriteBuffer)

Source from the content-addressed store, hash-verified

25type nullStorageProtection struct{}
26
27func (nullStorageProtection) Protect(_ string, input gather.Bytes, output *gather.WriteBuffer) {
28 output.Reset()
29 input.WriteTo(output) //nolint:errcheck
30}
31
32func (nullStorageProtection) Verify(_ string, input gather.Bytes, output *gather.WriteBuffer) error {
33 output.Reset()

Callers

nothing calls this directly

Calls 2

ResetMethod · 0.65
WriteToMethod · 0.65

Tested by

no test coverage detected