Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupScheduler ¶ added in v0.3.0
type BackupScheduler struct {
// contains filtered or unexported fields
}
BackupDispatcher is responsible for managing the backup process for multiple repositories.
func NewBackupScheduler ¶ added in v0.3.0
func NewBackupScheduler() *BackupScheduler
NewBackupDispatcher creates a new BackupDispatcher instance.
func (*BackupScheduler) RescheduleBackup ¶ added in v0.3.0
func (d *BackupScheduler) RescheduleBackup(repo *repository.BackupRepo)
func (*BackupScheduler) ScheduleBackup ¶ added in v0.3.0
func (d *BackupScheduler) ScheduleBackup(repo *repository.BackupRepo)
func (*BackupScheduler) Start ¶ added in v0.3.0
func (d *BackupScheduler) Start()
Start starts the backup dispatcher and runs the backup process for each repository at the specified intervals.
func (*BackupScheduler) Stop ¶ added in v0.3.0
func (d *BackupScheduler) Stop()
Stop stops the backup dispatcher and waits for the backup process to complete.
func (*BackupScheduler) UnscheduleBackup ¶ added in v0.3.0
func (d *BackupScheduler) UnscheduleBackup(repo *repository.BackupRepo)
Click to show internal directories.
Click to hide internal directories.