Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateBackupRepo ¶
func ValidateBackupRepo(backupRepo BackupRepo) error
Types ¶
type BackupRepo ¶
type BackupRepo struct {
Name string `json:"name" db:"name"`
SrcRepo *git.Repository `json:"-"`
RemoteURL string `json:"remote_url" db:"remote_url"`
PullInterval int `json:"pull_interval" db:"pull_interval"`
Storages map[string]storage.Storage `json:"storage"`
LocalPath string `json:"-" db:"local_path"`
Credentials `json:"credentials"`
}
func (*BackupRepo) InitializeRepo ¶
func (b *BackupRepo) InitializeRepo() error
type BackupRepoProcessor ¶
type BackupRepoProcessor interface {
ProcessBackupRepo(parsedJSONRepo *ParsedJSONRepo) (*BackupRepo, error)
}
type BackupRepoProcessorImpl ¶
type BackupRepoProcessorImpl struct {
StorageCreator storage.StorageCreator
}
func (*BackupRepoProcessorImpl) ProcessBackupRepo ¶
func (p *BackupRepoProcessorImpl) ProcessBackupRepo(parsedJSONRepo *ParsedJSONRepo) (*BackupRepo, error)
type Credentials ¶
type ParsedJSONRepo ¶
type ParsedJSONRepo struct {
Name string `json:"name" db:"name"`
RemoteURL string `json:"remote_url" db:"remote_url"`
PullInterval int `json:"pull_interval" db:"pull_interval"`
LocalPath string `json:"-" db:"local_path"`
Storages map[string]json.RawMessage `json:"storage"`
Credentials `json:"credentials"`
}
Click to show internal directories.
Click to hide internal directories.