MCPcopy Create free account
hub / github.com/QuantumNous/new-api / taskPluginHasFactory

Function taskPluginHasFactory

controller/task_plugin.go:822–829  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

820}
821
822func taskPluginHasFactory(key string) bool {
823 for _, meta := range jsplugin.DefaultRegistry.Snapshot().Factory {
824 if meta.Key == key {
825 return true
826 }
827 }
828 return false
829}
830
831// rejectTaskPluginRoutingConflict answers the request and returns true when
832// the plugin about to serve key fails to compile or does not fit the live

Callers 4

UploadTaskPluginFunction · 0.85
DeleteTaskPluginVersionFunction · 0.85
SetTaskPluginStatusFunction · 0.85

Calls 1

SnapshotMethod · 0.45

Tested by

no test coverage detected