Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdaptedItemBlockAction ¶
type AdaptedItemBlockAction struct { Kind common.PluginKind // Get returns a restartable ItemBlockAction for the given name and process, wrapping if necessary GetRestartable func(name string, restartableProcess process.RestartableProcess) ibav1.ItemBlockAction }
AdaptedItemBlockAction is an ItemBlock action adapted to the v1 ItemBlockAction API
func AdaptedItemBlockActions ¶
func AdaptedItemBlockActions() []AdaptedItemBlockAction
type RestartableItemBlockAction ¶
type RestartableItemBlockAction struct { Key process.KindAndName }
RestartableItemBlockAction is an ItemBlock 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 restartableItemBlockAction 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 NewRestartableItemBlockAction ¶
func NewRestartableItemBlockAction(name string, sharedPluginProcess process.RestartableProcess) *RestartableItemBlockAction
NewRestartableItemBlockAction returns a new RestartableItemBlockAction.
func (*RestartableItemBlockAction) AppliesTo ¶
func (r *RestartableItemBlockAction) AppliesTo() (velero.ResourceSelector, error)
AppliesTo restarts the plugin's process if needed, then delegates the call.
func (*RestartableItemBlockAction) GetRelatedItems ¶
func (r *RestartableItemBlockAction) GetRelatedItems(item runtime.Unstructured, backup *api.Backup) ([]velero.ResourceIdentifier, error)
GetRelatedItems restarts the plugin's process if needed, then delegates the call.
func (*RestartableItemBlockAction) Name ¶
func (r *RestartableItemBlockAction) Name() string
Name returns the plugin's name.