aboutsummaryrefslogtreecommitdiff
path: root/object/store/quarantine_writer.go
blob: f5656a8c121e674110191bf52d985c2678e12719 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package objectstore

// WriterQuarantine represents one quarantined write that accepts both object-
// wise and pack-wise writes.
type WriterQuarantine interface {
	Quarantine
	ObjectWriter
	PackWriter
}

// QuarantineOptions controls the options for one coordinated quarantine creation.
type QuarantineOptions struct {
	Object ObjectQuarantineOptions
	Pack   PackQuarantineOptions
}

// WriterQuarantiner creates coordinated quarantines that support both object-
// wise and pack-wise writes.
type WriterQuarantiner interface {
	BeginQuarantine(opts QuarantineOptions) (WriterQuarantine, error)
}