GetCLIPlugins returns the list of Docker CLI plugins installed on the system. Results are cached after the first call.
()
| 233 | // GetCLIPlugins returns the list of Docker CLI plugins installed on the system. |
| 234 | // Results are cached after the first call. |
| 235 | func GetCLIPlugins() ([]manager.Plugin, error) { |
| 236 | dm, err := getDockerManagerInstance() |
| 237 | if err != nil { |
| 238 | return nil, err |
| 239 | } |
| 240 | return dm.cliPlugins, dm.cliPluginsErr |
| 241 | } |
| 242 | |
| 243 | // GetCLIPlugin returns the specified Docker CLI plugin by name, or an error if not found or if the plugin has an error. |
| 244 | func GetCLIPlugin(name string) (manager.Plugin, error) { |