(pluginName string)
| 36 | } |
| 37 | |
| 38 | func (data *data) getPlugin(pluginName string) (connection.Interface, error) { |
| 39 | for idx := range data.plugins { |
| 40 | plugin := data.plugins[idx] |
| 41 | if plugin.Name() == pluginName { |
| 42 | return plugin, nil |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | return nil, ErrPluginNotLoaded |
| 47 | } |
| 48 | |
| 49 | func (data *data) MetadataList() []connection.Metadata { |
| 50 | result := make([]connection.Metadata, len(data.plugins)) |
no test coverage detected