v1

package
v1.10.2-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

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

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

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

func (*RestartableBackupItemAction) 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