providers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 1 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() error
	ListBackups() (BackupVersions, error)
	CleanupBackups() error
	GetNextBackupName() string
	DownloadBackup(version *BackupVersion) error
	UploadBackup(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