Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptedBackupItemAction ¶
type AdaptedBackupItemAction struct { Kind common.PluginKind // Get returns a restartable BackupItemAction for the given name and process, wrapping if necessary GetRestartable func(name string, restartableProcess process.RestartableProcess) biav1.BackupItemAction }
AdaptedBackupItemAction is a backup item action adapted to the v1 BackupItemAction API
func AdaptedBackupItemActions ¶
func AdaptedBackupItemActions() []AdaptedBackupItemAction
type RestartableBackupItemAction ¶
type RestartableBackupItemAction struct { Key process.KindAndName }
RestartableBackupItemAction is a backup item action for a given implementation (such as "pod"). It is associated with a restartableProcess, which may be shared and used to run multiple plugins. At the beginning of each method call, the restartableBackupItemAction asks its restartableProcess to restart itself if needed (e.g. if the process terminated for any reason), then it proceeds with the actual call.
func NewRestartableBackupItemAction ¶
func NewRestartableBackupItemAction(name string, sharedPluginProcess process.RestartableProcess) *RestartableBackupItemAction
NewRestartableBackupItemAction returns a new RestartableBackupItemAction.
func (*RestartableBackupItemAction) AppliesTo ¶
func (r *RestartableBackupItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo restarts the plugin's process if needed, then delegates the call.
func (*RestartableBackupItemAction) Execute ¶
func (r *RestartableBackupItemAction) Execute(item runtime.Unstructured, backup *api.Backup) (runtime.Unstructured, []velero.ResourceIdentifier, error)
Execute restarts the plugin's process if needed, then delegates the call.