shithub: furgit

ref: df1f2fb3daa1acd25c88510f259d5535fb482126
dir: /object/store/base_quarantine.go/

View raw version
package objectstore

// BaseQuarantine is one quarantined write. It is intended to be embedded.
type BaseQuarantine 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
}