MCPcopy Create free account
hub / github.com/docker/cli / PluginConfig

Method PluginConfig

cli/config/configfile/file.go:439–449  ·  view source on GitHub ↗

PluginConfig retrieves the requested option for the given plugin.

(pluginname, option string)

Source from the content-addressed store, hash-verified

437
438// PluginConfig retrieves the requested option for the given plugin.
439func (c *ConfigFile) PluginConfig(pluginname, option string) (string, bool) {
440 if c.Plugins == nil {
441 return "", false
442 }
443 pluginConfig, ok := c.Plugins[pluginname]
444 if !ok {
445 return "", false
446 }
447 value, ok := pluginConfig[option]
448 return value, ok
449}
450
451// SetPluginConfig sets the option to the given value for the given
452// plugin. Passing a value of "" will remove the option. If removing

Callers 2

mainFunction · 0.80
TestPluginConfigFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestPluginConfigFunction · 0.64