shithub: furgit

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

View raw version
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)
}