MCPcopy Create free account
hub / github.com/ddev/ddev / GetCLIPlugins

Function GetCLIPlugins

pkg/dockerutil/docker_manager.go:235–241  ·  view source on GitHub ↗

GetCLIPlugins returns the list of Docker CLI plugins installed on the system. Results are cached after the first call.

()

Source from the content-addressed store, hash-verified

233// GetCLIPlugins returns the list of Docker CLI plugins installed on the system.
234// Results are cached after the first call.
235func 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.
244func GetCLIPlugin(name string) (manager.Plugin, error) {

Callers 2

TestGetCLIPluginsFunction · 0.92
GetCLIPluginFunction · 0.85

Calls 1

getDockerManagerInstanceFunction · 0.85

Tested by 1

TestGetCLIPluginsFunction · 0.74