blob: 25c1e8d98a3c6834f5890e672fa5be4a0d60e8b0 (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)
}
|