class HttpManagement: (source)
Plugin class to add the Management functionality to the HTTP server.
The management endpoint is registered at "__mgmt__".
The plugin depends on the HttpServer.HttpServer plugin, which is injected into this plugin by the acmecse.runtime.PluginManager.PluginManager.
The management endpoint will only be registered if the HttpServer.HttpServer plugin is loaded and the dependency can be resolved.
| Method | configure |
Configure the plugin based on the configuration settings. |
| Method | handle |
Handle a management request. This is used to control the CSE. |
| Method | handle |
Handle a management request. This is used to delete internal management data in the CSE. |
| Method | handle |
Handle a management request. This is used to control the CSE. |
| Method | handle |
Handle a management request. This is used to update internal management data in the CSE. |
| Method | start |
Start the management plugin. |
| Class Variable | http |
The injected HttpServer.HttpServer plugin instance is injected by the acmecse.runtime.PluginManager.PluginManager based on the declared dependency. The plugin will only be loaded if the HttpServer.HttpServer... |
| Class Variable | management |
Injected ManagementSupport instance. |
| Method | _get |
Handle the config command. This is used to provide the current configuration of the CSE. |
| Method | _get |
Handle the creds command. This is used to provide the current credentials of the CSE. |
| Method | _get |
Handle the help command. This is used to provide a list of available management commands. |
| Method | _response |
Create a Flask Response object with the given response data, status code, and mimetype. |
Configure the plugin based on the configuration settings.
| Parameters | |
config:Configuration | The configuration object. |
str | None = None, param: str | None = None, subparam: str | None = None) -> Response:
(source)
¶
Handle a management request. This is used to control the CSE.
| Parameters | |
command:str | None | The management command to execute. If None, the request is rejected. |
param:str | None | An optional parameter for the management command. |
subparam:str | None | An optional sub-parameter for the management command. |
| Returns | |
Response | A response object. |
str | None = None, param: str | None = None, subparam: str | None = None) -> Response:
(source)
¶
Handle a management request. This is used to delete internal management data in the CSE.
| Parameters | |
command:str | None | The management command to execute. If None, the request is rejected. |
param:str | None | An optional parameter for the management command. |
subparam:str | None | An optional sub-parameter for the management command. |
| Returns | |
Response | A response object. |
str | None = None, param: str | None = None, subparam: str | None = None) -> Response:
(source)
¶
Handle a management request. This is used to control the CSE.
| Parameters | |
command:str | None | The management command to execute. If None, the request is rejected. |
param:str | None | An optional parameter for the management command. |
subparam:str | None | An optional sub-parameter for the management command. |
| Returns | |
Response | A response object. |
str | None = None, param: str | None = None, subparam: str | None = None) -> Response:
(source)
¶
Handle a management request. This is used to update internal management data in the CSE.
| Parameters | |
command:str | None | The management command to execute. If None, the request is rejected. |
param:str | None | An optional parameter for the management command. |
subparam:str | None | An optional sub-parameter for the management command. |
| Returns | |
Response | A response object. |
The injected HttpServer.HttpServer plugin instance is injected by the acmecse.runtime.PluginManager.PluginManager based on the declared dependency. The plugin will only be loaded if the HttpServer.HttpServer plugin is loaded.
Handle the config command. This is used to provide the current configuration of the CSE.
| Returns | |
Response | A response object with the current configuration. |
Handle the creds command. This is used to provide the current credentials of the CSE.
| Parameters | |
param:str | None | An optional parameter for the management command. |
subparam:str | None | An optional sub-parameter for the management command. |
| Returns | |
Response | A response object with the current credentials. |
Handle the help command. This is used to provide a list of available management commands.
| Returns | |
Response | A response object with the help message. |
Any, status: int = 200, mimetype: str = 'application/json') -> Response:
(source)
¶
Create a Flask Response object with the given response data, status code, and mimetype.
| Parameters | |
response:Any | The response data to include in the response. |
status:int | The HTTP status code for the response. Default is 200 (OK). |
mimetype:str | The MIME type of the response. Default is 'application/json'. |
| Returns | |
Response | A Flask Response object. |