providers

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupProvider

type BackupProvider interface {
	EnsureBackupBucket(ctx context.Context) error
	ListBackups(ctx context.Context) (BackupVersions, error)
	CleanupBackups(ctx context.Context) error
	GetNextBackupName(ctx context.Context) string
	DownloadBackup(ctx context.Context, version *BackupVersion) error
	UploadBackup(ctx context.Context, sourcePath string) error
}

type BackupVersion

type BackupVersion struct {
	Name    string
	Version string
	Date    time.Time
}

type BackupVersions

type BackupVersions interface {
	Latest() *BackupVersion
	Sort(versions []*BackupVersion, asc bool)
	List() []*BackupVersion
	Get(version string) (*BackupVersion, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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