backup

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 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(ctx ActionContext, 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, error)

type ActionContext added in v0.4.0

type ActionContext struct {
	// contains filtered or unexported fields
}

ActionContext contains contextual information for actions.

type Backupper

type Backupper interface {
	// Backup takes a backup using the specification in the api.Backup and writes backup and log data
	// to the given writers.
	Backup(backup *api.Backup, backupFile, logFile 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