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 }
Click to show internal directories.
Click to hide internal directories.