backup

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

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, 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.2.11_0000000000000001_etcd.backup full path is "etcd-backups/v1/default/example-etcd-cluster/3.2.11_0000000000000001_etcd.backup".

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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