import fnmatch


def _storage_get_keys(bucket, pattern):
  """ Get names of all storage keys in a specified bucket that match a pattern. """
  return [item for item in list(bucket.items()) if fnmatch.fnmatch(item.metadata.name, pattern)]