mirror of
https://github.com/kopia/kopia.git
synced 2026-01-05 04:57:53 -05:00
Remove unused-parameter exclusion for `ctx` in revive linter. --------- Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Co-authored-by: Matthieu MOREL <matthieu.morel35@gmail.com>
39 lines
865 B
Go
39 lines
865 B
Go
package cache
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/internal/gather"
|
|
"github.com/kopia/kopia/repo/blob"
|
|
)
|
|
|
|
// passthroughContentCache is a contentCache which does no caching.
|
|
type passthroughContentCache struct {
|
|
st blob.Storage
|
|
}
|
|
|
|
func (c passthroughContentCache) Close(_ context.Context) {}
|
|
|
|
func (c passthroughContentCache) GetContent(ctx context.Context, contentID string, blobID blob.ID, offset, length int64, output *gather.WriteBuffer) error {
|
|
_ = contentID
|
|
|
|
//nolint:wrapcheck
|
|
return c.st.GetBlob(ctx, blobID, offset, length, output)
|
|
}
|
|
|
|
func (c passthroughContentCache) PrefetchBlob(_ context.Context, blobID blob.ID) error {
|
|
_ = blobID
|
|
|
|
return nil
|
|
}
|
|
|
|
func (c passthroughContentCache) Sync(_ context.Context, blobPrefix blob.ID) error {
|
|
_ = blobPrefix
|
|
|
|
return nil
|
|
}
|
|
|
|
func (c passthroughContentCache) CacheStorage() Storage {
|
|
return nil
|
|
}
|