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, tc *tls.Config, endpoints []string, namespace string) *BackupManager
NewBackupManagerFromWriter creates a BackupManager with backup writer.
func (*BackupManager) EnsureMaxBackup ¶ added in v0.9.4
EnsureMaxBackup to ensure the number of snapshot is under maxcount if the number of snapshot exceeded than maxcount, delete oldest snapshot
func (*BackupManager) SaveSnap ¶ added in v0.6.1
func (bm *BackupManager) SaveSnap(ctx context.Context, s3Path string, isPeriodic bool) (int64, string, *metav1.Time, error)
SaveSnap uses backup writer to save etcd snapshot to a specified S3 path and returns backup etcd server's kv store revision and its version.
Click to show internal directories.
Click to hide internal directories.