Documentation
¶
Index ¶
- type CleanupService
- func (c *CleanupService) CleanupAgeBasedFiles(ctx context.Context, backupDir string, selectedDatabases []string) error
- func (c *CleanupService) CleanupLocal(ctx context.Context, backupDir string) error
- func (c *CleanupService) GetConfig() *config.CleanupConfig
- func (c *CleanupService) GetOldFiles(backupDir string, retentionDays int) ([]string, error)
- type Service
- type Statistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupService ¶
type CleanupService struct {
// contains filtered or unexported fields
}
func NewCleanupService ¶
func NewCleanupService(config *config.CleanupConfig, uploadConfig *config.UploadConfig, logger *logger.Logger) *CleanupService
func (*CleanupService) CleanupAgeBasedFiles ¶
func (c *CleanupService) CleanupAgeBasedFiles(ctx context.Context, backupDir string, selectedDatabases []string) error
CleanupAgeBasedFiles removes old files based on age with cloud verification
func (*CleanupService) CleanupLocal ¶
func (c *CleanupService) CleanupLocal(ctx context.Context, backupDir string) error
CleanupLocal is now deprecated in favor of the new smart cleanup system This function is kept for backward compatibility but should not be used
func (*CleanupService) GetConfig ¶
func (c *CleanupService) GetConfig() *config.CleanupConfig
GetConfig returns the cleanup configuration
func (*CleanupService) GetOldFiles ¶
func (c *CleanupService) GetOldFiles(backupDir string, retentionDays int) ([]string, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CleanupUploadedFiles ¶
CleanupUploadedFiles removes local files that have been successfully uploaded
func (*Service) GetStatistics ¶
func (s *Service) GetStatistics() Statistics
func (*Service) GetUploadedFiles ¶
GetUploadedFiles returns list of files that were successfully uploaded
Click to show internal directories.
Click to hide internal directories.