Documentation
¶
Index ¶
- type BackupRepoInserter
- type BackupRepoNameGetter
- type BackupReposGetter
- type Database
- func (db *Database) CloseDB()
- func (db *Database) GetAllBackupRepos() ([]*backuprepo.BackupRepo, error)
- func (db *Database) GetBackupRepoByName(name string) (*backuprepo.BackupRepo, error)
- func (db *Database) InsertOrUpdateBackupRepo(backupRepo *backuprepo.BackupRepo) error
- func (db *Database) MigrateDB() error
- type StoragesInserter
- type StoragesInserterImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupRepoInserter ¶
type BackupRepoInserter interface {
InsertOrUpdateBackupRepo(backupRepo *backuprepo.BackupRepo) error
}
type BackupRepoNameGetter ¶
type BackupRepoNameGetter interface {
GetBackupRepoByName(name string) (*backuprepo.BackupRepo, error)
}
type BackupReposGetter ¶
type BackupReposGetter interface {
GetAllBackupRepos() ([]*backuprepo.BackupRepo, error)
}
type Database ¶
type Database struct { *sqlx.DB BackupRepoProcessor backuprepo.BackupRepoProcessor StoragesInserter StoragesInserter }
func (*Database) GetAllBackupRepos ¶
func (db *Database) GetAllBackupRepos() ([]*backuprepo.BackupRepo, error)
GetAllBackupRepoConfigs retrieves all stored BackupRepoConfig from the database.
func (*Database) GetBackupRepoByName ¶
func (db *Database) GetBackupRepoByName(name string) (*backuprepo.BackupRepo, error)
func (*Database) InsertOrUpdateBackupRepo ¶
func (db *Database) InsertOrUpdateBackupRepo(backupRepo *backuprepo.BackupRepo) error
type StoragesInserter ¶
type StoragesInserterImpl ¶
type StoragesInserterImpl struct{}
func (*StoragesInserterImpl) InsertOrUpdateStorages ¶
Click to show internal directories.
Click to hide internal directories.