Documentation
¶
Index ¶
- type BackupRepo
- type BackupRepoManager
- func (bm *BackupRepoManager) AddBackupRepo(r *BackupRepo)
- func (bm *BackupRepoManager) AddStorage(repo_name string, storage storage.Storage)
- func (bm *BackupRepoManager) DeleteBackupRepo(name string)
- func (bm *BackupRepoManager) GetAllBackupRepos() []*BackupRepo
- func (bm *BackupRepoManager) GetBackupRepo(name string) *BackupRepo
- func (bm *BackupRepoManager) RemoveStorage(repo_name, storage_name string)
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupRepo ¶
type BackupRepo struct {
Name string `json:"name" db:"name"`
SrcRepo *git.Repository `json:"-"`
RemoteURL string `json:"remote_url" db:"remote_url"`
Schedule string `json:"schedule" db:"schedule"`
Storages map[string]storage.Storage `json:"-"`
LocalPath string `json:"-" db:"local_path"`
Credentials `json:"credentials"`
}
func (*BackupRepo) AddStorage ¶ added in v0.3.0
func (b *BackupRepo) AddStorage(storage storage.Storage)
func (*BackupRepo) BackupAndUpload ¶ added in v0.3.0
func (b *BackupRepo) BackupAndUpload() error
func (*BackupRepo) DecryptCredentials ¶ added in v0.3.0
func (b *BackupRepo) DecryptCredentials() error
func (*BackupRepo) InitializeRepo ¶
func (b *BackupRepo) InitializeRepo() error
func (*BackupRepo) InitializeStorages ¶ added in v0.3.0
func (b *BackupRepo) InitializeStorages()
func (*BackupRepo) RemoveStorage ¶ added in v0.3.0
func (b *BackupRepo) RemoveStorage(storage_name string)
type BackupRepoManager ¶ added in v0.3.0
type BackupRepoManager struct {
// contains filtered or unexported fields
}
func NewBackupRepoManager ¶ added in v0.3.0
func NewBackupRepoManager() *BackupRepoManager
func (*BackupRepoManager) AddBackupRepo ¶ added in v0.3.0
func (bm *BackupRepoManager) AddBackupRepo(r *BackupRepo)
func (*BackupRepoManager) AddStorage ¶ added in v0.3.0
func (bm *BackupRepoManager) AddStorage(repo_name string, storage storage.Storage)
func (*BackupRepoManager) DeleteBackupRepo ¶ added in v0.3.0
func (bm *BackupRepoManager) DeleteBackupRepo(name string)
func (*BackupRepoManager) GetAllBackupRepos ¶ added in v0.3.0
func (bm *BackupRepoManager) GetAllBackupRepos() []*BackupRepo
func (*BackupRepoManager) GetBackupRepo ¶ added in v0.3.0
func (bm *BackupRepoManager) GetBackupRepo(name string) *BackupRepo
func (*BackupRepoManager) RemoveStorage ¶ added in v0.3.0
func (bm *BackupRepoManager) RemoveStorage(repo_name, storage_name string)
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.