Function
pluginFilter
(pluginPath string, kind cqapi.PluginKind)
Source from the content-addressed store, hash-verified
| 129 | } |
| 130 | |
| 131 | func pluginFilter(pluginPath string, kind cqapi.PluginKind) func(plugin cqapi.ListPlugin) bool { |
| 132 | return func(plugin cqapi.ListPlugin) bool { |
| 133 | return plugin.TeamName+"/"+plugin.Name == pluginPath && plugin.Kind == kind && plugin.LatestVersion != nil |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | func pluginName(plugin cqapi.ListPlugin, _ int) string { |
| 138 | return plugin.Name |
Tested by
no test coverage detected