(driver, capability string, mode int)
| 431 | } |
| 432 | |
| 433 | func (daemon *Daemon) pluginRefCount(driver, capability string, mode int) { |
| 434 | var builtinDrivers []string |
| 435 | |
| 436 | switch capability { |
| 437 | case driverapi.NetworkPluginEndpointType: |
| 438 | builtinDrivers = daemon.netController.BuiltinDrivers() |
| 439 | case ipamapi.PluginEndpointType: |
| 440 | builtinDrivers = daemon.netController.BuiltinIPAMDrivers() |
| 441 | default: |
| 442 | // other capabilities can be ignored for now |
| 443 | } |
| 444 | |
| 445 | if slices.Contains(builtinDrivers, driver) { |
| 446 | return |
| 447 | } |
| 448 | |
| 449 | if daemon.PluginStore != nil { |
| 450 | _, err := daemon.PluginStore.Get(driver, capability, mode) |
| 451 | if err != nil { |
| 452 | log.G(context.TODO()).WithError(err).WithFields(log.Fields{"mode": mode, "driver": driver}).Error("Error handling plugin refcount operation") |
| 453 | } |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | func validateIpamConfig(data []networktypes.IPAMConfig, enableIPv6 bool) error { |
| 458 | var errs []error |
no test coverage detected