(file pluginFile)
| 322 | } |
| 323 | |
| 324 | func (h *Host) load(file pluginFile) (*loadedPlugin, error) { |
| 325 | client, errOpen := h.loader.Open(file, h) |
| 326 | if errOpen != nil { |
| 327 | return nil, errOpen |
| 328 | } |
| 329 | |
| 330 | return &loadedPlugin{ |
| 331 | id: file.ID, |
| 332 | path: file.Path, |
| 333 | version: file.Version, |
| 334 | client: newGuardedPluginClient(client), |
| 335 | }, nil |
| 336 | } |
| 337 | |
| 338 | func (h *Host) withLoadedPluginFallbacks(files []pluginFile, items map[string]runtimeItemConfig, desired map[string]string) []pluginFile { |
| 339 | if h == nil || len(desired) == 0 { |
no test coverage detected