Method
Protect
(_ string, input gather.Bytes, output *gather.WriteBuffer)
Source from the content-addressed store, hash-verified
| 25 | type nullStorageProtection struct{} |
| 26 | |
| 27 | func (nullStorageProtection) Protect(_ string, input gather.Bytes, output *gather.WriteBuffer) { |
| 28 | output.Reset() |
| 29 | input.WriteTo(output) //nolint:errcheck |
| 30 | } |
| 31 | |
| 32 | func (nullStorageProtection) Verify(_ string, input gather.Bytes, output *gather.WriteBuffer) error { |
| 33 | output.Reset() |
Callers
nothing calls this directly
Tested by
no test coverage detected