(h *Host, record capabilityRecord, provider string, executor pluginapi.ProviderExecutor)
| 916 | } |
| 917 | |
| 918 | func newExecutorAdapterRegistration(h *Host, record capabilityRecord, provider string, executor pluginapi.ProviderExecutor) executorRegistration { |
| 919 | return executorRegistration{ |
| 920 | provider: provider, |
| 921 | adapter: &executorAdapter{ |
| 922 | host: h, |
| 923 | pluginID: record.id, |
| 924 | path: record.path, |
| 925 | version: record.version, |
| 926 | provider: provider, |
| 927 | executor: executor, |
| 928 | inputFormats: normalizeExecutorFormats(record.plugin.Capabilities.ExecutorInputFormats), |
| 929 | outputFormats: normalizeExecutorFormats(record.plugin.Capabilities.ExecutorOutputFormats), |
| 930 | }, |
| 931 | } |
| 932 | } |
| 933 | |
| 934 | func (h *Host) snapshotModelRegistrations() []pluginModelRegistration { |
| 935 | if h == nil { |
no test coverage detected