aboutsummaryrefslogtreecommitdiff
path: root/object/store/writer_pack.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 12:58:26 +0000
committerGravatar Runxi Yu2026-03-30 12:58:26 +0000
commitce22af5eb8c94f2a817fca326efc6bea680e63cc (patch)
treef1a58fa766425dc43290a769c203569ca2f7c4a3 /object/store/writer_pack.go
parentobject/store: ObjectWriter should support writers too. (diff)
signatureNo signature
object/store: Reorganize files
Diffstat (limited to 'object/store/writer_pack.go')
-rw-r--r--object/store/writer_pack.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/object/store/writer_pack.go b/object/store/writer_pack.go
new file mode 100644
index 00000000..25c1e8d9
--- /dev/null
+++ b/object/store/writer_pack.go
@@ -0,0 +1,26 @@
+package objectstore
+
+import "io"
+
+// PackWriteOptions controls one pack write operation.
+type PackWriteOptions struct{}
+
+// PackWriter writes Git pack streams.
+type PackWriter interface {
+ // WritePack ingests one pack stream.
+ WritePack(src io.Reader, opts PackWriteOptions) error
+}
+
+// PackQuarantine represents one quarantined pack-wise write.
+type PackQuarantine interface {
+ Quarantine
+ PackWriter
+}
+
+// PackQuarantineOptions controls the options for one pack quarantine creation.
+type PackQuarantineOptions struct{}
+
+// PackQuarantiner creates quarantines for pack-wise writes.
+type PackQuarantiner interface {
+ BeginPackQuarantine(opts PackQuarantineOptions) (PackQuarantine, error)
+}