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.
Click to show internal directories.
Click to hide internal directories.