LoadResources executes the configured resource loader.
()
| 36 | |
| 37 | // LoadResources executes the configured resource loader. |
| 38 | func LoadResources() error { |
| 39 | resourceLoader.RLock() |
| 40 | fn := resourceLoader.fn |
| 41 | resourceLoader.RUnlock() |
| 42 | if fn != nil { |
| 43 | return fn() |
| 44 | } |
| 45 | if err := LoadPorts(); err != nil { |
| 46 | return err |
| 47 | } |
| 48 | if err := LoadFingers(); err != nil { |
| 49 | return err |
| 50 | } |
| 51 | return LoadTemplates() |
| 52 | } |
| 53 | |
| 54 | // LoadEmbeddedConfig loads the standalone embedded config without consulting |
| 55 | // an installed external provider. |
no test coverage detected