backup

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupExpiredBackups

func CleanupExpiredBackups(db *gorm.DB) error

func CreateBackupJob

func CreateBackupJob(db *gorm.DB, adminUserID uuid.UUID, includeFiles, includeConfigs bool, userIDs []uuid.UUID) (*database.BackupJob, error)

func DeleteBackupJob

func DeleteBackupJob(db *gorm.DB, jobID uuid.UUID, adminUserID uuid.UUID) error

func GetBackupJob

func GetBackupJob(db *gorm.DB, jobID uuid.UUID, adminUserID uuid.UUID) (*database.BackupJob, error)

func GetBackupJobs

func GetBackupJobs(db *gorm.DB, adminUserID uuid.UUID) ([]database.BackupJob, error)

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

func NewWorker

func NewWorker(db *gorm.DB) *Worker

func (*Worker) Start

func (w *Worker) Start()

func (*Worker) Stop

func (w *Worker) Stop()

Jump to

Keyboard shortcuts

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