mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
19 lines
369 B
Go
19 lines
369 B
Go
package virtualfs
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/get-drexa/drexa/internal/blob"
|
|
)
|
|
|
|
type BlobKeyResolver interface {
|
|
KeyMode() blob.KeyMode
|
|
Resolve(ctx context.Context, node *Node) (blob.Key, error)
|
|
ResolveDeletionKeys(ctx context.Context, node *Node, allKeys []blob.Key) (*DeletionPlan, error)
|
|
}
|
|
|
|
type DeletionPlan struct {
|
|
Prefix blob.Key
|
|
Keys []blob.Key
|
|
}
|