diff options
Diffstat (limited to 'object/store/quarantine_writer.go')
| -rw-r--r-- | object/store/quarantine_writer.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/object/store/quarantine_writer.go b/object/store/quarantine_writer.go new file mode 100644 index 00000000..f5656a8c --- /dev/null +++ b/object/store/quarantine_writer.go @@ -0,0 +1,21 @@ +package objectstore + +// WriterQuarantine represents one quarantined write that accepts both object- +// wise and pack-wise writes. +type WriterQuarantine interface { + Quarantine + ObjectWriter + PackWriter +} + +// QuarantineOptions controls the options for one coordinated quarantine creation. +type QuarantineOptions struct { + Object ObjectQuarantineOptions + Pack PackQuarantineOptions +} + +// WriterQuarantiner creates coordinated quarantines that support both object- +// wise and pack-wise writes. +type WriterQuarantiner interface { + BeginQuarantine(opts QuarantineOptions) (WriterQuarantine, error) +} |
