StashClientProtocol
Mixin for plugin-related client methods.
Functions
get_plugins
| Type | Description |
|---|---|
list[Plugin] | List of Plugin objects representing all loaded plugins |
get_plugin_tasks
| Type | Description |
|---|---|
list[PluginTask] | List of PluginTask objects representing all available plugin operations |
set_plugins_enabled
| Name | Type | Description | Default |
|---|---|---|---|
enabled_map | BoolMap | dict[str, bool] | Dictionary mapping plugin IDs to enabled status (True/False). Plugins not in the map are not affected. | required |
| Type | Description |
|---|---|
bool | True if the operation was successful, False otherwise |
run_plugin_task
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id | str | ID of the plugin to run | required |
task_name | str | None | Optional name of the task to run (uses task’s default config) | None |
description | str | None | Optional description for the job queue | None |
args_map | Map | dict[str, Any] | None | Optional arguments to pass to the plugin (as a dictionary) | None |
| Type | Description |
|---|---|
str | Job ID for the plugin task |
| Type | Description |
|---|---|
ValueError | If the operation fails or no job ID is returned |
run_plugin_operation
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id | str | ID of the plugin to run | required |
args | Map | dict[str, Any] | None | Optional arguments to pass to the plugin (as a dictionary) | None |
| Type | Description |
|---|---|
Any | The result from the plugin operation (type depends on the plugin) |
reload_plugins
| Type | Description |
|---|---|
bool | True if plugins were reloaded successfully, False otherwise |
configure_plugin
| Name | Type | Description | Default |
|---|---|---|---|
plugin_id | str | ID of the plugin to configure | required |
config | Map | dict[str, Any] | Configuration dictionary to set for the plugin | required |
| Type | Description |
|---|---|
Map | The updated plugin configuration |