mirror of
https://github.com/kopia/kopia.git
synced 2026-01-26 23:38:04 -05:00
27 lines
567 B
Go
27 lines
567 B
Go
package block
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/storage"
|
|
)
|
|
|
|
type nullBlockCache struct {
|
|
st storage.Storage
|
|
}
|
|
|
|
func (c nullBlockCache) getContentBlock(ctx context.Context, cacheKey string, blockID string, offset, length int64) ([]byte, error) {
|
|
return c.st.GetBlock(ctx, blockID, offset, length)
|
|
}
|
|
|
|
func (c nullBlockCache) listIndexBlocks(ctx context.Context) ([]IndexInfo, error) {
|
|
return listIndexBlocksFromStorage(ctx, c.st)
|
|
}
|
|
|
|
func (c nullBlockCache) deleteListCache(ctx context.Context) {
|
|
}
|
|
|
|
func (c nullBlockCache) close() error {
|
|
return nil
|
|
}
|