v1

package
v1.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 2

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
	SharedPluginProcess process.RestartableProcess
}

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

AppliesTo restarts the plugin's process if needed, then delegates the call.

func (*RestartableRestoreItemAction) Execute

Execute restarts the plugin's process if needed, then delegates the call.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL