From ce22af5eb8c94f2a817fca326efc6bea680e63cc Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 30 Mar 2026 12:58:26 +0000 Subject: object/store: Reorganize files --- object/store/writer_pack.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 object/store/writer_pack.go (limited to 'object/store/writer_pack.go') 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) +} -- cgit v1.3.1-10-gc9f91