Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deletion ¶
type Deletion struct {
// VolumeDeletionID is the unique BoltDB key assigned on creation.
VolumeDeletionID []byte
// Key is the file key to delete from the remote volumes.
Key string
// VolumeIDs is the list of remote volume IDs that still hold a copy.
VolumeIDs []string
}
Deletion holds a pending remote-replica deletion job. When a file's last key is removed from a local volume, a Deletion is created so the background loop can propagate the delete to the remote volumes listed in VolumeIDs.
type Repository ¶
type Repository interface {
// Create stores a new pending deletion job.
Create(ctx context.Context, d *Deletion) error
// First returns the next pending deletion job.
First(ctx context.Context) (*Deletion, error)
// Delete removes a processed deletion job.
Delete(ctx context.Context, d *Deletion) error
}
Repository defines the operations for the pending deletion queue.
Click to show internal directories.
Click to hide internal directories.