Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chore ¶
Chore migrates pieces.
architecture: Chore
func NewChore ¶
func NewChore(log *zap.Logger, config Config, old, new piecestore.PieceBackend) *Chore
NewChore initializes and returns a new Chore instance.
func (*Chore) Close ¶
Close shuts down the chore's loop and releases associated resources. Always returns nil.
func (*Chore) RunOnce ¶
RunOnce executes a single iteration of the chore to migrate pieces based on the configuration.
func (*Chore) SetMigrate ¶
SetMigrate enables or disables migration for the given satellite. Adds the satellite to the active set if migrate is true; otherwise, removes it.
Click to show internal directories.
Click to hide internal directories.