backup

package
v0.0.0-...-3442565 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DataFilename = "etcd.backup.gz"
View Source
const MetaFilename = "_etcd_backup.meta"

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	Spec() string

	// AddBackup adds a backup to the store, returning the name of the backup
	AddBackup(backupFile string, sequence string, info *etcd.BackupInfo) (string, error)

	// ListBackups returns all the available backups, in chronological order
	ListBackups() ([]string, error)

	// RemoveBackup deletes a backup (as returned by ListBackups)
	RemoveBackup(backup string) error

	// LoadInfo loads the backup information that should have been saved alongside a backup
	LoadInfo(backup string) (*etcd.BackupInfo, error)

	// DownloadBackup downloads the backup to the specific file
	DownloadBackup(name string, destFile string) error
}

func NewStore

func NewStore(storage string) (Store, error)

func NewVFSStore

func NewVFSStore(p vfs.Path) (Store, error)

Jump to

Keyboard shortcuts

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