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
| Name | Type | Description |
|---|---|---|
| info | k8s.PluginEntry | The 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
| Name | Type | Description |
|---|---|---|
| info | core.PluginEntry | The 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
| Name | Type | Description |
|---|---|---|
| info | webapi.PluginEntry | The 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
| Type | Description |
|---|---|
[]core.PluginEntry | A 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
| Type | Description |
|---|---|
[]k8s.PluginEntry | A slice of k8s.PluginEntry objects, each representing a registered Kubernetes plugin. |