{"id":23596477,"url":"https://github.com/ch-ld/go-cmdb-ops","last_synced_at":"2026-04-25T12:33:20.398Z","repository":{"id":269771631,"uuid":"908403890","full_name":"ch-ld/go-cmdb-ops","owner":"ch-ld","description":"go-cmdb-ops","archived":false,"fork":false,"pushed_at":"2024-12-26T02:32:00.000Z","size":0,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-26T03:27:56.449Z","etag":null,"topics":["cmdb","gin","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ch-ld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-26T01:55:41.000Z","updated_at":"2024-12-26T03:02:36.000Z","dependencies_parsed_at":"2024-12-26T03:38:07.920Z","dependency_job_id":null,"html_url":"https://github.com/ch-ld/go-cmdb-ops","commit_stats":null,"previous_names":["ch-ld/go-cmdb-ops"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch-ld%2Fgo-cmdb-ops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch-ld%2Fgo-cmdb-ops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch-ld%2Fgo-cmdb-ops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ch-ld%2Fgo-cmdb-ops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ch-ld","download_url":"https://codeload.github.com/ch-ld/go-cmdb-ops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239441677,"owners_count":19639122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmdb","gin","golang"],"created_at":"2024-12-27T10:12:13.058Z","updated_at":"2025-11-04T21:30:27.168Z","avatar_url":"https://github.com/ch-ld.png","language":"Go","readme":"\n\n  \u003ch1 align=\"center\"\u003ego-cmdb-ops\u003c/h1\u003e\n  \u003cp align=\"center\"\u003e\n 此项目架构完全参考cmdb-ops-flow，是cmdb-ops-flow的优化版本，完成了此版本的一些功能新增和优化。\n    \u003cbr /\u003e\n     \u003cbr /\u003e\n    本项目后端参考： https://github.com/qishu321/cmdb-ops-flow\n\t\u003cbr /\u003e\n\t此项目前端地址： https://github.com/ch-ld/go-cmdb-ops-web\n\n  \u003c/p\u003e\n    \u003cbr /\u003e\n\n## 技术栈 \n\n#### 后端 Golang 1.19\n\n- Gin 1.9.1             [(Web框架)](https://gin-gonic.com/zh-cn/)\n- GORM v1.9.16     [(ORM)](https://gorm.io/zh_CN/)\n- MySQL 8.0             [(数据库)](https://www.mysql.com/)\n\n#### 前端 Vue.js 3\n\n- vue-admin-template                     [(后台前端)](http://panjiachen.github.io/vue-admin-template)\n\n#### 已实现的功能\n- [x] 内部导航栏\n- [x] 用户中心\n  - [x] 用户管理\n  - [x] 角色管理\n- [x] CMDB\n  - [x] 主机管理\n    - [x] 新增主机\n    - [x] 导入主机\n    - [x] 同步云主机\n      - [ ] 阿里云\n      - [ ] AWS\n  - [x] 主机组管理\n  - [x] 远程操作\n    - [x] wehssh\n    - [x] 批量执行命令\n    - [x] SFTP\n      - [x] 文件上传\n      - [x] 创建文件\n      - [x] 文件下载\n      - [x] 文件批量删除\n- [ ] k8s的多集群管理\n\n## 部署方法\n\n###安装编译\n\n```go\n# clone\ngit clone https://github.com/ch-ld/go-cmdb-ops\n##整体目录结构\n├─api               api\n├─conf              配置文件\n├─middleware        中间件\n├─models            数据库\n├─router            路径\n├─service           业务逻辑\n├─test\n└─utils             通用工具\n    ├─common        加密解密\n    ├─msg           状态码\n    ├─result        状态码封装\n    └─ssh           ssh\n\ncd go-cmdb-ops\ngo mod tidy\ngo build go-cmdb-ops\n```\n\n\n#### 如何参与开源项目\n\n贡献使开源社区成为一个学习、激励和创造的绝佳场所。你所作的任何贡献都是**非常感谢**的。\n\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n### 版本控制\n\n该项目使用Git进行版本管理。您可以在repository参看当前可用版本。\n\n### 作者\n\n暂无\n\n\n### 版权说明\n\n该项目签署了MIT 授权许可\n\n### 鸣谢\n\n[cmdb-ops-flow](https://github.com/qishu321/cmdb-ops-flow) 强烈感谢cmdb-ops-flow提供的基本框架，开始所有的流程和思路都是基于这个基础之上来配置的\n\n[vue-admin-template](http://panjiachen.github.io/vue-admin-template) 非常感谢vue-admin-template的开源项目\n\n[webssh](https://github.com/widaT/webssh)               非常感谢widaT的webssh开源项目\n\n[shaojintian README模板](https://github.com/shaojintian/Best_README_template)  非常感谢 shaojintian README模板\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fch-ld%2Fgo-cmdb-ops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fch-ld%2Fgo-cmdb-ops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fch-ld%2Fgo-cmdb-ops/lists"}