'Returns a list of snapshots, transformed through entity_maker.'

def _items(self, req, entity_maker):

    context = req.environ['nova.context']
    context.can(vol_policies.BASE_POLICY_NAME)
    snapshots = self.volume_api.get_all_snapshots(context)
    limited_list = common.limited(snapshots, req)
    res = [entity_maker(context, snapshot) for snapshot in limited_list]
    return {'snapshots': res}
