deletion

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL