ErisPulse 管理控制模块 - 提供框架管理和命令执行功能
Project description
ErisPulse AdminControl
ErisPulse 管理控制模块 - 提供框架管理和命令执行功能
功能特性
AdminControl 模块为 ErisPulse 框架提供了完整的管理控制功能
命令列表
列表命令(无需权限)
| 命令 | 简写 | 描述 |
|---|---|---|
/list-modules |
/lm |
列出所有已注册的模块 |
/list-adapters |
/la |
列出所有已注册的适配器 |
/list-all |
/ls |
列出所有组件(模块和适配器) |
框架管理(需要管理员权限)
| 命令 | 简写 | 描述 |
|---|---|---|
/restart-framework |
/restart |
重启 ErisPulse 框架 |
/reload-module <模块名> |
/rm <模块名> |
重新加载指定模块 |
/load-module <模块名> |
- | 加载指定模块 |
/unload-module <模块名> |
/um <模块名> |
卸载指定模块 |
适配器管理(需要管理员权限)
| 命令 | 简写 | 描述 |
|---|---|---|
/start-adapter <适配器名> |
- | 启动指定适配器 |
/stop-adapter <适配器名> |
- | 停止指定适配器 |
/enable-adapter <适配器名> |
- | 启用指定适配器 |
/disable-adapter <适配器名> |
- | 禁用指定适配器 |
/restart-adapter <适配器名> |
- | 重启指定适配器 |
/adapter-status [适配器名] |
- | 查看适配器运行状态 |
模块管理(需要管理员权限)
| 命令 | 简写 | 描述 |
|---|---|---|
/enable-module <模块名> |
- | 启用指定模块 |
/disable-module <模块名> |
- | 禁用指定模块 |
配置管理(需要管理员权限)
| 命令 | 简写 | 描述 |
|---|---|---|
/get-config <配置键> |
- | 获取模块/适配器配置 |
/set-config <配置键> <值> |
- | 设置模块/适配器配置 |
支持 JSON 格式的配置值:
/set-config MyModule {"key1": "value1", "key2": 123}
存储管理
| 命令 | 简写 | 描述 | 权限 |
|---|---|---|---|
/get-storage <键名> |
- | 获取存储值 | 需要管理员 |
/set-storage <键名> <值> |
- | 设置存储值 | 需要管理员 |
/delete-storage <键名> |
- | 删除存储值 | 需要管理员 |
/list-storage |
- | 列出所有存储键名 | 无需权限 |
支持 JSON 格式的存储值:
/set-storage user:123 {"name": "张三", "age": 25}
权限管理
| 命令 | 简写 | 描述 | 权限 |
|---|---|---|---|
/add-admin <用户ID/群组ID> |
- | 添加管理员 | 需要管理员 |
/remove-admin <用户ID/群组ID> |
- | 移除管理员 | 需要管理员 |
/list-admins |
- | 列出所有管理员 | 无需权限 |
安装
使用 epsdk 安装
epsdk install AdminControl
epsdk install HelpModule # 可选,但推荐安装 使用`/help`即可查看全部已经注册的命令
首次配置
安装后,需要在 config.toml 中添加第一个管理员:
[AdminControl]
admins = ["你的用户ID"]
链接
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file erispulse_admincontrol-2.0.0.tar.gz.
File metadata
- Download URL: erispulse_admincontrol-2.0.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e17e4816c72d1629da5456e2d2c9a0ef3c0aa0f6d9b808376d0aa5acbe76f91
|
|
| MD5 |
943953755510831a3ae2a5d308d55145
|
|
| BLAKE2b-256 |
f34ea014670da2be6ab2aa0526172abf5b12b0a46f1d344e715ccbf996c4b41f
|
Provenance
The following attestation bundles were made for erispulse_admincontrol-2.0.0.tar.gz:
Publisher:
python-publish.yml on wsu2059q/ErisPulse-AdminControl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erispulse_admincontrol-2.0.0.tar.gz -
Subject digest:
6e17e4816c72d1629da5456e2d2c9a0ef3c0aa0f6d9b808376d0aa5acbe76f91 - Sigstore transparency entry: 1270982404
- Sigstore integration time:
-
Permalink:
wsu2059q/ErisPulse-AdminControl@0b319bc71047fa4480bfbc5beb6de519b3dd1cd8 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/wsu2059q
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0b319bc71047fa4480bfbc5beb6de519b3dd1cd8 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file erispulse_admincontrol-2.0.0-py3-none-any.whl.
File metadata
- Download URL: erispulse_admincontrol-2.0.0-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec6ca102e979f1e8c4b17c920d872c99232fb0ae0beb4ced01df5eb3a2ac9010
|
|
| MD5 |
3208f72bfda77173a7cc83c48064d9ec
|
|
| BLAKE2b-256 |
13da91e0cc9c76ca2bc44cf62bef87191f3a2d7eec1abcdc88234692e2dd5f25
|
Provenance
The following attestation bundles were made for erispulse_admincontrol-2.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on wsu2059q/ErisPulse-AdminControl
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
erispulse_admincontrol-2.0.0-py3-none-any.whl -
Subject digest:
ec6ca102e979f1e8c4b17c920d872c99232fb0ae0beb4ced01df5eb3a2ac9010 - Sigstore transparency entry: 1270982413
- Sigstore integration time:
-
Permalink:
wsu2059q/ErisPulse-AdminControl@0b319bc71047fa4480bfbc5beb6de519b3dd1cd8 -
Branch / Tag:
refs/heads/master - Owner: https://github.com/wsu2059q
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0b319bc71047fa4480bfbc5beb6de519b3dd1cd8 -
Trigger Event:
workflow_dispatch
-
Statement type: