Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptedRestoreItemAction ¶
type AdaptedRestoreItemAction struct { Kind common.PluginKind // Get returns a restartable RestoreItemAction for the given name and process, wrapping if necessary GetRestartable func(name string, restartableProcess process.RestartableProcess) riav1.RestoreItemAction }
AdaptedRestoreItemAction is a restore item action adapted to the v1 RestoreItemAction API
func AdaptedRestoreItemActions ¶
func AdaptedRestoreItemActions() []AdaptedRestoreItemAction
type RestartableRestoreItemAction ¶
type RestartableRestoreItemAction struct { Key process.KindAndName }
RestartableRestoreItemAction is a restore 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 RestartableRestoreItemAction 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 NewRestartableRestoreItemAction ¶
func NewRestartableRestoreItemAction(name string, sharedPluginProcess process.RestartableProcess) *RestartableRestoreItemAction
NewRestartableRestoreItemAction returns a new RestartableRestoreItemAction.
func (RestartableRestoreItemAction) AppliesTo ¶
func (r RestartableRestoreItemAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo restarts the plugin's process if needed, then delegates the call.
func (*RestartableRestoreItemAction) Execute ¶
func (r *RestartableRestoreItemAction) Execute(input *velero.RestoreItemActionExecuteInput) (*velero.RestoreItemActionExecuteOutput, error)
Execute restarts the plugin's process if needed, then delegates the call.