PluginLoader
No overview available.
Methods
PluginLoader()
def PluginLoader(
ctx: context.Context,
iCtx: [PluginSetupContext](pluginsetupcontext.md?sid=flyteplugins_go_tasks_pluginmachinery_webapi_pluginsetupcontext)
) - > [AsyncPlugin](asyncplugin.md?sid=flyteplugins_go_tasks_pluginmachinery_webapi_asyncplugin), error
A lazy loading function that initializes a plugin. This function is guaranteed to be called before any Handle, Abort, or Finalize functions are invoked for the plugin.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the plugin loading operation, allowing for cancellation and carrying request-scoped values. |
| iCtx | [PluginSetupContext](pluginsetupcontext.md?sid=flyteplugins_go_tasks_pluginmachinery_webapi_pluginsetupcontext) | The setup context providing necessary information and utilities for plugin initialization. |
Returns
| Type | Description |
|---|---|
[AsyncPlugin](asyncplugin.md?sid=flyteplugins_go_tasks_pluginmachinery_webapi_asyncplugin), error | The initialized asynchronous plugin and an error if the initialization failed. |