aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 15:48:35 +0000
committerGravatar Runxi Yu2026-03-30 15:48:35 +0000
commitf0df94f08549b5de5cb9311e1041473904b54661 (patch)
tree2b0694c7b3b05a0b439a0422be78e5a5b3f08d3a
parentobject/store: Quarantine should just embed Reader (diff)
signatureNo signature
object/store: Clarify quarantine docs
-rw-r--r--object/store/quarantine.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/object/store/quarantine.go b/object/store/quarantine.go
index 7f538f43..a9ba4f55 100644
--- a/object/store/quarantine.go
+++ b/object/store/quarantine.go
@@ -2,12 +2,16 @@ 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 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
}