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

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

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

	// Discard abandons quarantined writes.
	Discard() error
}