code: func (m *DriverProvider) NewSecretDriver(driver *api.Driver) (*SecretDriver, error) {
  	if m.pluginGetter == nil {
  		return nil, fmt.Errorf("plugin getter is nil")
  	}
  	if driver == nil && driver.Name == "" {
  		return nil, fmt.Errorf("driver specification is nil")
  	}
  	// Search for the specified plugin
  	plugin, err := m.pluginGetter.Get(driver.Name, SecretsProviderCapability, plugingetter.Lookup)
  	if err != nil {
  		return nil, err
  	}
  	return NewSecretDriver(plugin), nil
  }
docs: // NewSecretDriver creates a new driver for fetching secrets