diff options
Diffstat (limited to 'object/store/writer_pack.go')
| -rw-r--r-- | object/store/writer_pack.go | 26 |
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) +} |
