Mapping user-defined storage capabilities to datastores