v1

package
v0.0.0-...-c1b1270 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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

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

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

func (*RestartableItemBlockAction) GetRelatedItems

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

func (*RestartableItemBlockAction) Name

Name returns the plugin's name.

Jump to

Keyboard shortcuts

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