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

// Quarantine is one quarantined write. It is intended to be embedded.
type Quarantine interface {
	// Reader exposes the objects written into this quarantine.
	Reader

	// Promote publishes quarantined writes into their final destination.
	//
	// Promote invalidates the receiver.
	Promote() error

	// Discard abandons quarantined writes.
	//
	// Discard invalidates the receiver.
	Discard() error
}