feat(rdp): 新增 RDP 远程桌面/SMB/账单同步能力 + 清理编译产物
主要变更: - RDP 远程桌面:新增 backend/pkg/rdp(RDP 引擎 + credssp/display/rle/trace)、 backend/controller/rdp*(连接/凭证/文件/会话/实时)、frontend RDP 组件与 API - Windows SMB 文件传输:backend/pkg/winsmb - 云账单同步:backend/pkg/billingsync + billing_sync/aliyun_billing,前端账单详情 - Agent CLI Kubernetes 工具:kubernetes_action/get、pod_execute/logs - 服务器导入助手:server_import_helpers、ImportCredentialSettings - 国际化与组件重构(cloud/deploy/monitor/server/system 等多模块) - 清理编译产物二进制:移除 backend/server、backend/agent/bin/aiops-agent-* - .gitignore:新增 backend/agent/ 与 .cache/(避免 334MB go-build 缓存误入库) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
777d9e4e71
commit
76ec9387f0
202 files changed
+16555
-2543
No files matched your search
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
"ezops/model"
|
||||
"ezops/pkg/auditcleaner"
|
||||
"ezops/pkg/billingsync"
|
||||
"ezops/pkg/database"
|
||||
snmppkg "ezops/pkg/snmp"
|
||||
|
||||
@@ -66,6 +67,11 @@ var (
|
||||
Description: "清理 7 天前的 SNMP 采集指标历史,防止表膨胀",
|
||||
Schedule: "每 24 小时", Category: "cleanup", Runnable: true, Enabled: true,
|
||||
},
|
||||
{
|
||||
Code: "cloud_billing_sync", Name: "云账单同步",
|
||||
Description: "从云账号 AK 拉取昨日账单(按产品+地域),写入云账单管理;当前支持阿里云",
|
||||
Schedule: "每天 10:30", Category: "finops", Runnable: true, Enabled: true,
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
@@ -195,6 +201,14 @@ func RunManual(gdb *gorm.DB, driver, code string) (Item, error) {
|
||||
r := gdb.Exec(sql)
|
||||
err = r.Error
|
||||
msg = fmt.Sprintf("清理 %d 条 SNMP 指标(保留 %d 天)", r.RowsAffected, snmppkg.MetricsRetentionDays)
|
||||
case "cloud_billing_sync":
|
||||
result := billingsync.SyncDate(gdb, billingsync.Yesterday(), nil)
|
||||
msg = billingsync.SummaryMessage(result)
|
||||
if result.Accounts == 0 {
|
||||
err = fmt.Errorf("没有可同步的活跃云账号")
|
||||
} else if result.Created == 0 && result.Updated == 0 && len(result.Errors) > 0 {
|
||||
err = fmt.Errorf("%s", result.Errors[0])
|
||||
}
|
||||
default:
|
||||
return Item{}, fmt.Errorf("任务 %s 未实现手动执行", code)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user