Documentation
¶
Index ¶
- type Driver
- func (lru *Driver) GetContent(ctx context.Context, path string) ([]byte, error)
- func (lru *Driver) Move(ctx context.Context, sourcePath string, destPath string) error
- func (lru *Driver) Reader(ctx context.Context, path string, offset int64) (io.ReadCloser, error)
- func (lru *Driver) Writer(ctx context.Context, path string, append bool) (driver.FileWriter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver struct {
driver.StorageDriver
// contains filtered or unexported fields
}
Driver wraps a storage driver to track blob access for LRU eviction
func New ¶
func New(base driver.StorageDriver, tracker *cache.LRUTracker, logger *logrus.Logger) *Driver
New creates a new LRU tracking storage driver
func (*Driver) GetContent ¶
GetContent wraps the base driver's GetContent and tracks access
Click to show internal directories.
Click to hide internal directories.