2025-11-27 20:49:58 +00:00
|
|
|
package virtualfs
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
|
|
|
|
"github.com/get-drexa/drexa/internal/blob"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type BlobKeyResolver interface {
|
2025-11-28 22:31:00 +00:00
|
|
|
KeyMode() blob.KeyMode
|
2025-11-27 20:49:58 +00:00
|
|
|
Resolve(ctx context.Context, node *Node) (blob.Key, error)
|
2025-11-30 01:16:44 +00:00
|
|
|
ResolveDeletionKeys(ctx context.Context, node *Node, allKeys []blob.Key) (*DeletionPlan, error)
|
2025-11-27 20:49:58 +00:00
|
|
|
}
|
|
|
|
|
|
2025-11-30 01:16:44 +00:00
|
|
|
type DeletionPlan struct {
|
|
|
|
|
Prefix blob.Key
|
|
|
|
|
Keys []blob.Key
|
2025-11-27 20:49:58 +00:00
|
|
|
}
|