def _get_all(context, session, filters=None, marker=None, limit=None, sort_keys=None, sort_dirs=None, show_level=ga.Showlevel.NONE):
 filters = (filters or {})
 query = _do_artifacts_query(context, session, show_level)
 (basic_conds, tag_conds, prop_conds) = _do_query_filters(filters)
 if basic_conds:
  for basic_condition in basic_conds:
   query = query.filter(and_(*basic_condition))
 if tag_conds:
  for tag_condition in tag_conds:
   query = query.join(models.ArtifactTag, aliased=True).filter(and_(*tag_condition))
 if prop_conds:
  for prop_condition in prop_conds:
   query = query.join(models.ArtifactProperty, aliased=True).filter(and_(*prop_condition))
 marker_artifact = None
 if (marker is not None):
  marker_artifact = _get(context, marker, session, None, None)
 if (sort_keys is None):
  sort_keys = [('created_at', None), ('id', None)]
  sort_dirs = ['desc', 'desc']
 else:
  for key in [('created_at', None), ('id', None)]:
   if (key not in sort_keys):
    sort_keys.append(key)
    sort_dirs.append('desc')
 if (('version', None) in sort_keys):
  i = sort_keys.index(('version', None))
  version_sort_dir = sort_dirs[i]
  sort_keys[i:(i + 1)] = [('version_prefix', None), ('version_suffix', None), ('version_meta', None)]
  sort_dirs[i:(i + 1)] = ([version_sort_dir] * 3)
 query = _do_paginate_query(query=query, limit=limit, sort_keys=sort_keys, marker=marker_artifact, sort_dirs=sort_dirs)
 return query.all()

def _get_all ( context , session , filters = None , marker = None , limit = None , sort_keys = None , sort_dirs = None , show_level = ga . Showlevel . NONE ) : filters = ( filters or { } ) query = _do_artifacts_query ( context , session , show_level ) ( basic_conds , tag_conds , prop_conds ) = _do_query_filters ( filters ) if basic_conds : for basic_condition in basic_conds : query = query . filter ( and_ ( * basic_condition ) ) if tag_conds : for tag_condition in tag_conds : query = query . join ( models . ArtifactTag , aliased = True ) . filter ( and_ ( * tag_condition ) ) if prop_conds : for prop_condition in prop_conds : query = query . join ( models . ArtifactProperty , aliased = True ) . filter ( and_ ( * prop_condition ) ) marker_artifact = None if ( marker is not None ) : marker_artifact = _get ( context , marker , session , None , None ) if ( sort_keys is None ) : sort_keys = [ ( 'created_at' , None ) , ( 'id' , None ) ] sort_dirs = [ 'desc' , 'desc' ] else : for key in [ ( 'created_at' , None ) , ( 'id' , None ) ] : if ( key not in sort_keys ) : sort_keys . append ( key ) sort_dirs . append ( 'desc' ) if ( ( 'version' , None ) in sort_keys ) : i = sort_keys . index ( ( 'version' , None ) ) version_sort_dir = sort_dirs [ i ] sort_keys [ i : ( i + 1 ) ] = [ ( 'version_prefix' , None ) , ( 'version_suffix' , None ) , ( 'version_meta' , None ) ] sort_dirs [ i : ( i + 1 ) ] = ( [ version_sort_dir ] * 3 ) query = _do_paginate_query ( query = query , limit = limit , sort_keys = sort_keys , marker = marker_artifact , sort_dirs = sort_dirs ) return query . all ( )
get all namespaces that match zero or more filters .