code: func NewDataStoreFromConfig(dsc discoverapi.DatastoreConfigData) (DataStore, error) {
  	var (
  		ok    bool
  		sCfgP *store.Config
  	)
  
  	sCfgP, ok = dsc.Config.(*store.Config)
  	if !ok && dsc.Config != nil {
  		return nil, fmt.Errorf("cannot parse store configuration: %v", dsc.Config)
  	}
  
  	scopeCfg := &ScopeCfg{
  		Client: ScopeClientCfg{
  			Address:  dsc.Address,
  			Provider: dsc.Provider,
  			Config:   sCfgP,
  		},
  	}
  
  	ds, err := NewDataStore(dsc.Scope, scopeCfg)
  	if err != nil {
  		return nil, fmt.Errorf("failed to construct datastore client from datastore configuration %v: %v", dsc, err)
  	}
  
  	return ds, err
  }
docs: // NewDataStoreFromConfig creates a new instance of LibKV data store starting from the datastore config data