feat: support remove single item from installation task

This commit is contained in:
Yeuoly
2024-10-25 13:22:37 +08:00
parent 99c8f364ae
commit ffdc6f5c60
3 changed files with 30 additions and 0 deletions

View File

@ -103,6 +103,16 @@ class PluginInstallationManager(BasePluginManager):
bool,
)
def delete_plugin_installation_task_item(self, tenant_id: str, task_id: str, identifier: str) -> bool:
"""
Delete a plugin installation task item.
"""
return self._request_with_plugin_daemon_response(
"POST",
f"plugin/{tenant_id}/management/install/tasks/{task_id}/delete/{identifier}",
bool,
)
def fetch_plugin_manifest(self, tenant_id: str, plugin_unique_identifier: str) -> PluginDeclaration:
"""
Fetch a plugin manifest.