backup

package
Version: v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 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, 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".

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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