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