Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupManager ¶ added in v0.6.1
type BackupManager struct {
// contains filtered or unexported fields
}
BackupManager backups an etcd cluster.
func NewBackupManagerFromWriter ¶ added in v0.7.0
func NewBackupManagerFromWriter(kubecli kubernetes.Interface, bw writer.Writer, clusterName, namespace string) *BackupManager
NewBackupManagerFromWriter creates a BackupManager with backup writer.
func (*BackupManager) SaveSnapWithPrefix ¶ added in v0.7.0
func (bm *BackupManager) SaveSnapWithPrefix(prefix string) (string, error)
SaveSnapWithPrefix uses backup writer to save latest snapshot to a path prepended with the given prefix and returns file size and full path. the full path has the format of prefix/<etcd_version>_<snapshot_reversion>_etcd.backup e.g prefix = etcd-backups/v1/default/example-etcd-cluster and backup object name = 3.1.8_0000000000000001_etcd.backup full path is "etcd-backups/v1/default/example-etcd-cluster/3.1.8_0000000000000001_etcd.backup".
Click to show internal directories.
Click to hide internal directories.