backup

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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