MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / HasExecutorCandidateProvider

Method HasExecutorCandidateProvider

internal/pluginhost/adapters.go:1055–1074  ·  view source on GitHub ↗
(provider string)

Source from the content-addressed store, hash-verified

1053}
1054
1055func (h *Host) HasExecutorCandidateProvider(provider string) bool {
1056 if h == nil {
1057 return false
1058 }
1059 provider = strings.ToLower(strings.TrimSpace(provider))
1060 if provider == "" {
1061 return false
1062 }
1063 for _, record := range h.activeRecords() {
1064 executor := record.plugin.Capabilities.Executor
1065 if executor == nil || h.isPluginFused(record.id) {
1066 continue
1067 }
1068 candidate, okCandidate := h.executorProvider(record, executor)
1069 if okCandidate && candidate == provider {
1070 return true
1071 }
1072 }
1073 return false
1074}
1075
1076func (h *Host) ownsExecutor(executor coreauth.ProviderExecutor) bool {
1077 adapter, okAdapter := executor.(*executorAdapter)

Callers 1

Calls 3

activeRecordsMethod · 0.95
isPluginFusedMethod · 0.95
executorProviderMethod · 0.95

Tested by

no test coverage detected