aboutsummaryrefslogtreecommitdiff
path: root/object/store/loose/quarantine.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 17:34:16 +0000
committerGravatar Runxi Yu2026-03-30 17:34:16 +0000
commitbf394989bad0242c6596520b7528c1a06563efa7 (patch)
tree09d32b603aec4450ac6eb220e561f00eb4fb8472 /object/store/loose/quarantine.go
parentobject/store/loose: Fix lack of tmp file removal (diff)
signatureNo signature
object/store/loose: Add quarantine
Diffstat (limited to 'object/store/loose/quarantine.go')
-rw-r--r--object/store/loose/quarantine.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/object/store/loose/quarantine.go b/object/store/loose/quarantine.go
new file mode 100644
index 00000000..52fb8120
--- /dev/null
+++ b/object/store/loose/quarantine.go
@@ -0,0 +1,19 @@
+package loose
+
+import (
+ "os"
+
+ objectstore "codeberg.org/lindenii/furgit/object/store"
+)
+
+var _ objectstore.ObjectQuarantiner = (*Store)(nil)
+
+type objectQuarantine struct {
+ *Store
+
+ parent *Store
+ tempName string
+ tempRoot *os.Root
+}
+
+var _ objectstore.ObjectQuarantine = (*objectQuarantine)(nil)