feat: 完善堡垒机与 Agent 智能运维能力
- 支持 Windows Agent 构建、安装脚本和统一上报协议 - 增强 RDP 剪贴板、虚拟盘和文件传输能力 - 新增 AIOps 上下文工具、告警 RCA trace 落库和回放接口 - 重构 docs 模块文档并补充终端、堡垒机、监控、AI Agent 设计
This commit is contained in:
1 parent
a9513c2056
commit
e0d652d211
169 files changed
+12192
-9116
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// Package task 定义 Agent 远程任务类型。 // Logan.Li
|
||||
package task
|
||||
|
||||
const (
|
||||
TypeCommand = "command" // 单条 shell/PowerShell 命令 // Logan.Li
|
||||
TypeScript = "script" // 多行脚本 // Logan.Li
|
||||
)
|
||||
|
||||
// Task 表示从后端拉取到的待执行任务。 // Logan.Li
|
||||
type Task struct {
|
||||
TaskID string `json:"task_id"`
|
||||
Type string `json:"type"`
|
||||
Command string `json:"command"`
|
||||
Timeout int `json:"timeout"`
|
||||
}
|
||||
|
||||
// Result 表示任务执行结果,用于回传后端。 // Logan.Li
|
||||
type Result struct {
|
||||
TaskID string `json:"task_id"`
|
||||
ExitCode int `json:"exit_code"`
|
||||
Result string `json:"result"`
|
||||
Status string `json:"status"`
|
||||
}
|
||||
Reference in new issue
Block a user