Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBackupNotExists = errors.New("backup not exists")
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup interface {
// Backup source file in storage under defined name.
Backup(ctx context.Context, name string, sourceFile string) error
// Restore backup with defined name to target file.
// Must return ErrBackupNotExists in case there is no backup with such name.
Restore(ctx context.Context, name string, targetFile string) error
}
Backup provider.
Click to show internal directories.
Click to hide internal directories.