Skip to main content

TaskPluginRegistry

This class defines an interface for a registry that manages different types of task plugins. It provides methods to register Kubernetes, core, and remote plugins, and to retrieve lists of registered core and Kubernetes plugins.

Methods​


RegisterK8sPlugin()​

@classmethod
def RegisterK8sPlugin(
info: k8s.PluginEntry
)

Registers a Kubernetes plugin with the registry. This allows the system to discover and utilize the provided Kubernetes-specific plugin functionality.

Parameters​

NameTypeDescription
infok8s.PluginEntryThe entry containing information about the Kubernetes plugin to register.

RegisterCorePlugin()​

@classmethod
def RegisterCorePlugin(
info: core.PluginEntry
)

Registers a core plugin with the registry. This makes the core plugin available for use within the system.

Parameters​

NameTypeDescription
infocore.PluginEntryThe entry containing information about the core plugin to register.

RegisterRemotePlugin()​

@classmethod
def RegisterRemotePlugin(
info: webapi.PluginEntry
)

Registers a remote plugin with the registry. This enables the system to interact with and utilize the functionality provided by the remote plugin.

Parameters​

NameTypeDescription
infowebapi.PluginEntryThe entry containing information about the remote plugin to register.

GetCorePlugins()​

@classmethod
def GetCorePlugins() - > []core.PluginEntry

Retrieves a list of all registered core plugins. Callers use this to get an overview or access details of available core functionalities.

Returns​

TypeDescription
[]core.PluginEntryA slice of core.PluginEntry objects, each representing a registered core plugin.

GetK8sPlugins()​

@classmethod
def GetK8sPlugins() - > []k8s.PluginEntry

Retrieves a list of all registered Kubernetes plugins. This allows callers to inspect or utilize the Kubernetes-specific plugins that have been registered.

Returns​

TypeDescription
[]k8s.PluginEntryA slice of k8s.PluginEntry objects, each representing a registered Kubernetes plugin.