Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

erispulse_admincontrol-1.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

erispulse_admincontrol-1.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file erispulse_admincontrol-1.1.0.tar.gz.

File metadata

  • Download URL: erispulse_admincontrol-1.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for erispulse_admincontrol-1.1.0.tar.gz
Algorithm Hash digest
SHA256 369c7e1fa973c764d1086688f7c22210a93cada3c5822cd0dc8daa0b8c12bfa1
MD5 2f80ded2142847f2601e9caa80d1c47e
BLAKE2b-256 7232d39817f017e47e48413d8efe25e0f6e217ecbe815d0a20e975fa846db25d

See more details on using hashes here.

Provenance

The following attestation bundles were made for erispulse_admincontrol-1.1.0.tar.gz:

Publisher: python-publish.yml on wsu2059q/ErisPulse-AdminControl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file erispulse_admincontrol-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for erispulse_admincontrol-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ec8e056747f2296f414d0062fdbe677b6625641edd703f9a0cfd91c7ab8012e
MD5 00c17b5f2c4bae5d9edf4ad33e242c6b
BLAKE2b-256 0dae85bbeb90214843c5b6a7667ad1dbeb7fd8530e681aab7d8cc7118f04ec7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for erispulse_admincontrol-1.1.0-py3-none-any.whl:

Publisher: python-publish.yml on wsu2059q/ErisPulse-AdminControl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page