(provider string)
| 1053 | } |
| 1054 | |
| 1055 | func (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 | |
| 1076 | func (h *Host) ownsExecutor(executor coreauth.ProviderExecutor) bool { |
| 1077 | adapter, okAdapter := executor.(*executorAdapter) |
no test coverage detected