(e *gin.Engine)
| 44 | } |
| 45 | |
| 46 | func (d *Debug) RegisterTo(e *gin.Engine) { |
| 47 | e.GET("/v1/tasks/", getCloudBasicInfos(d.m)) |
| 48 | e.GET("/v1/tasks/:lcuuid/", getCloudBasicInfo(d.m)) |
| 49 | e.GET("/v1/info/:lcuuid/", getCloudResource(d.m)) |
| 50 | e.GET("/v1/trigger-domain/:lcuuid/", triggerDomain(d.m)) |
| 51 | e.GET("/v1/genesis/:type/", getGenesisSyncData(d.g, true)) |
| 52 | e.GET("/v1/sync/:type/", getGenesisSyncData(d.g, false)) |
| 53 | e.GET("/v1/agent-stats/:vtapID/", getAgentStats(d.g)) |
| 54 | e.GET("/v1/genesis-storage/:vtapID/", getGenesisStorage(d.g)) |
| 55 | e.GET("/v1/kubernetes-refresh/", triggerKubernetesRefresh(d.m)) // TODO: Move to a better path |
| 56 | e.GET("/v1/kubernetes-info/:clusterID/", getGenesisKubernetesData(d.g)) |
| 57 | e.GET("/v1/sub-tasks/:lcuuid/", getKubernetesGatherBasicInfos(d.m)) |
| 58 | e.GET("/v1/sub-domain-info/:lcuuid/", getSubDomainResource(d.m)) |
| 59 | e.GET("/v1/kubernetes-gather-info/:lcuuid/", getKubernetesGatherResource(d.m)) |
| 60 | e.GET("/v1/recorders/:domainLcuuid/:subDomainLcuuid/cache/", getRecorderCache(d.m)) |
| 61 | e.GET("/v1/recorders/:domainLcuuid/:subDomainLcuuid/cache/diff-bases/", getRecorderCacheDiffBaseDataSet(d.m)) |
| 62 | e.GET("/v1/recorders/:domainLcuuid/:subDomainLcuuid/cache/tool-maps/", getRecorderCacheToolDataSet(d.m)) |
| 63 | e.GET("/v1/recorders/:domainLcuuid/:subDomainLcuuid/cache/diff-bases/:resourceType/", getRecorderDiffBaseDataSetByResourceType(d.m)) |
| 64 | e.GET("/v1/recorders/:domainLcuuid/:subDomainLcuuid/cache/diff-bases/:resourceType/:resourceLcuuid/", getRecorderDiffBase(d.m)) |
| 65 | e.GET("/v1/recorders/:domainLcuuid/:subDomainLcuuid/cache/tool-maps/:field/", getRecorderCacheToolMap(d.m)) |
| 66 | } |
| 67 | |
| 68 | func getCloudBasicInfo(m *manager.Manager) gin.HandlerFunc { |
| 69 | return gin.HandlerFunc(func(c *gin.Context) { |
nothing calls this directly
no test coverage detected