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

Function taskPluginHasFactory

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

Source from the content-addressed store, hash-verified

819}
820
821func taskPluginHasFactory(key string) bool {
822 for _, meta := range jsplugin.DefaultRegistry.Snapshot().Factory {
823 if meta.Key == key {
824 return true
825 }
826 }
827 return false
828}
829
830// rejectTaskPluginRoutingConflict answers the request and returns true when
831// 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