Skip to main content

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

NameTypeDescription
ctxcontext.ContextThe 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

TypeDescription
[AsyncPlugin](asyncplugin.md?sid=flyteplugins_go_tasks_pluginmachinery_webapi_asyncplugin), errorThe initialized asynchronous plugin and an error if the initialization failed.