From 3ba67c27db0cf52b120e4f15c09047aa96d3bcb4 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 30 Mar 2026 18:18:06 +0000 Subject: object/store: Unify writers and fix naming --- object/store/base_quarantine.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 object/store/base_quarantine.go (limited to 'object/store/base_quarantine.go') diff --git a/object/store/base_quarantine.go b/object/store/base_quarantine.go new file mode 100644 index 00000000..754fb3ee --- /dev/null +++ b/object/store/base_quarantine.go @@ -0,0 +1,17 @@ +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 +} -- cgit v1.3.1-10-gc9f91