code: func (ds *Datastore) GetType(ctx context.Context) (string, error) {
  	var dsMo mo.Datastore
  	pc := property.DefaultCollector(ds.Client())
  	err := pc.RetrieveOne(ctx, ds.Datastore.Reference(), []string{"summary"}, &dsMo)
  	if err != nil {
  		klog.Errorf("Failed to retrieve datastore summary property. err: %v", err)
  		return "", err
  	}
  	return dsMo.Summary.Type, nil
  }
docs: // GetType returns the type of datastore