(key string)
| 516 | } |
| 517 | |
| 518 | func taskPluginHasFactory(key string) bool { |
| 519 | for _, meta := range jsplugin.DefaultRegistry.Snapshot().Factory { |
| 520 | if meta.Key == key { |
| 521 | return true |
| 522 | } |
| 523 | } |
| 524 | return false |
| 525 | } |
| 526 | |
| 527 | func GetTaskPluginMarketplaceSources(c *gin.Context) { |
| 528 | common.ApiSuccess(c, setting.GetTaskPluginMarketplaceSources()) |
no test coverage detected