listPluginCandidates returns a map from plugin name to the list of (unvalidated) Candidates. The list is in descending order of priority.
(dirs []string)
| 89 | |
| 90 | // listPluginCandidates returns a map from plugin name to the list of (unvalidated) Candidates. The list is in descending order of priority. |
| 91 | func listPluginCandidates(dirs []string) map[string][]string { |
| 92 | result := make(map[string][]string) |
| 93 | for _, d := range dirs { |
| 94 | addPluginCandidatesFromDir(result, d) |
| 95 | } |
| 96 | return result |
| 97 | } |
| 98 | |
| 99 | // GetPlugin returns a plugin on the system by its name |
| 100 | func GetPlugin(name string, dockerCLI config.Provider, rootcmd *cobra.Command) (*Plugin, error) { |
searching dependent graphs…