refactor: rename plugin manager to plugin client and rename path from manager to impl (#18876)
This commit is contained in:
parent
d91828dd90
commit
abafa68647
38 changed files with 116 additions and 103 deletions
17
api/core/plugin/impl/debugging.py
Normal file
17
api/core/plugin/impl/debugging.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from pydantic import BaseModel
|
||||
|
||||
from core.plugin.impl.base import BasePluginClient
|
||||
|
||||
|
||||
class PluginDebuggingClient(BasePluginClient):
|
||||
def get_debugging_key(self, tenant_id: str) -> str:
|
||||
"""
|
||||
Get the debugging key for the given tenant.
|
||||
"""
|
||||
|
||||
class Response(BaseModel):
|
||||
key: str
|
||||
|
||||
response = self._request_with_plugin_daemon_response("POST", f"plugin/{tenant_id}/debugging/key", Response)
|
||||
|
||||
return response.key
|
||||
Loading…
Add table
Add a link
Reference in a new issue