backup

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2017 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	// Execute is invoked on an item being backed up. If an error is returned, the Backup is marked as
	// failed.
	Execute(item map[string]interface{}, backup *api.Backup) error
}

Action is an actor that performs an operation on an individual item being backed up.

func NewVolumeSnapshotAction

func NewVolumeSnapshotAction(snapshotService cloudprovider.SnapshotService) Action

type Backupper

type Backupper interface {
	// Backup takes a backup using the specification in the api.Backup and writes backup data to the
	// given writers.
	Backup(backup *api.Backup, data io.Writer) error
}

Backupper performs backups.

func NewKubernetesBackupper

func NewKubernetesBackupper(
	discoveryHelper discovery.Helper,
	dynamicFactory client.DynamicFactory,
	actions map[string]Action,
) (Backupper, error)

NewKubernetesBackupper creates a new kubernetesBackupper.

Jump to

Keyboard shortcuts

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