Add idempotent object deletion

This commit is contained in:
2026-09-05 12:22:44 +00:00
parent 7f84fc5d1e
commit 14b4fee214
10 changed files with 143 additions and 9 deletions

View File

@@ -28,6 +28,7 @@ type ObjectStore interface {
Download(ctx context.Context, key, localPath string) error
Upload(ctx context.Context, localPath, key string, opts UploadOptions) (ObjectInfo, error)
UploadConditional(ctx context.Context, source io.Reader, key string, opts UploadOptions, condition WriteCondition) (ObjectInfo, error)
Delete(ctx context.Context, key string) error
Exists(ctx context.Context, key string) (bool, error)
}