(key string)
| 573 | } |
| 574 | |
| 575 | func taskPluginHasFactory(key string) bool { |
| 576 | for _, meta := range jsplugin.DefaultRegistry.Snapshot().Factory { |
| 577 | if meta.Key == key { |
| 578 | return true |
| 579 | } |
| 580 | } |
| 581 | return false |
| 582 | } |
| 583 | |
| 584 | func GetTaskPluginMarketplaceSources(c *gin.Context) { |
| 585 | common.ApiSuccess(c, setting.GetTaskPluginMarketplaceSources()) |
no test coverage detected