Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFTPHostRequired = errors.New("FTP storage requires host")
)
View Source
var (
ErrInvalidArgument = errors.New("invalid argument")
)
View Source
var (
ErrUnsupportedStorageType = errors.New("unsupported storage type")
)
Functions ¶
This section is empty.
Types ¶
type Backend ¶ added in v0.5.1
type Backend interface {
// Upload uploads data to the specified path in the storage backend
Upload(ctx context.Context, filename string, data io.Reader) error
// Download downloads data from the specified path in the storage backend
Download(ctx context.Context, filename string, data io.Writer) error
// DeleteOldBackups removes old backups based on the retention policy
DeleteOldBackups(ctx context.Context, maxCount int) error
}
Backend defines the interface for pluggable storage backends.
Click to show internal directories.
Click to hide internal directories.