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

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

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

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