data/model/oci/tag.py
def list_repository_tag_history(
    repository_id,
    page,
    page_size,
    specific_tag_name=None,
    active_tags_only=False,
    since_time_ms=None,
):
    """
    Returns a tuple of the full set of tags found in the specified repository, including those that
    are no longer alive (unless active_tags_only is True), and whether additional tags exist. If
    specific_tag_name is given, the tags are further filtered by name. If since is given, tags are
    further filtered to newer than that date.

    Note that the returned Manifest will not contain the manifest contents.
    """
    query = (
        Tag.select(Tag, Manifest.id, Manifest.digest, Manifest.media_type)
        .join(Manifest)
        .where(Tag.repository == repository_id)
        .order_by(Tag.lifetime_start_ms.desc(), Tag.name)
        .limit(page_size + 1)
        .offset(page_size * (page - 1))
    )

    if specific_tag_name is not None:
        query = query.where(Tag.name == specific_tag_name)

    if since_time_ms is not None:
        query = query.where(
            (Tag.lifetime_start_ms > since_time_ms) | (Tag.lifetime_end_ms > since_time_ms)
        )

    if active_tags_only:
        query = filter_to_alive_tags(query)

    query = filter_to_visible_tags(query)
    results = list(query)

    return results[0:page_size], len(results) > page_size

    Returns a tuple of the full set of tags found in the specified repository, including those that
    are no longer alive (unless active_tags_only is True), and whether additional tags exist. If
    specific_tag_name is given, the tags are further filtered by name. If since is given, tags are
    further filtered to newer than that date.

    Note that the returned Manifest will not contain the manifest contents.
    
Returns a tuple of the full set of tags found in the specified repository, including those that
are no longer alive (unless active_tags_only is True), and whether additional tags exist. If
specific_tag_name is given, the tags are further filtered by name. If since is given, tags are
further filtered to newer than that date.

Note that the returned Manifest will not contain the manifest contents.
Returns a tuple of the full set of tags found in the specified repository including those that are no longer alive ( unless active_tags_only is True ) and whether additional tags exist . If specific_tag_name is given the tags are further filtered by name . If since is given tags are further filtered to newer than that date . Note that the returned Manifest will not contain the manifest contents .
def list_repository_tag_history(
    repository_id,
    page,
    page_size,
    specific_tag_name=None,
    active_tags_only=False,
    since_time_ms=None,
):
    query = (
        Tag.select(Tag, Manifest.id, Manifest.digest, Manifest.media_type)
        .join(Manifest)
        .where(Tag.repository == repository_id)
        .order_by(Tag.lifetime_start_ms.desc(), Tag.name)
        .limit(page_size + 1)
        .offset(page_size * (page - 1))
    )
    if specific_tag_name is not None:
        query = query.where(Tag.name == specific_tag_name)
    if since_time_ms is not None:
        query = query.where(
            (Tag.lifetime_start_ms > since_time_ms) | (Tag.lifetime_end_ms > since_time_ms)
        )
    if active_tags_only:
        query = filter_to_alive_tags(query)
    query = filter_to_visible_tags(query)
    results = list(query)
    return results[0:page_size], len(results) > page_size
def list_repository_tag_history ( repository_id , page , page_size , specific_tag_name = None , active_tags_only = False , since_time_ms = None , ) : query = ( Tag . select ( Tag , Manifest . id , Manifest . digest , Manifest . media_type ) . join ( Manifest ) . where ( Tag . repository == repository_id ) . order_by ( Tag . lifetime_start_ms . desc ( ) , Tag . name ) . limit ( page_size + 1 ) . offset ( page_size * ( page - 1 ) ) ) if specific_tag_name is not None : query = query . where ( Tag . name == specific_tag_name ) if since_time_ms is not None : query = query . where ( ( Tag . lifetime_start_ms > since_time_ms ) | ( Tag . lifetime_end_ms > since_time_ms ) ) if active_tags_only : query = filter_to_alive_tags ( query ) query = filter_to_visible_tags ( query ) results = list ( query ) return results [ 0 : page_size ] , len ( results ) > page_size
Returns a tuple of the full set of tags found in the specified repository, including those that
are no longer alive (unless active_tags_only is True), and whether additional tags exist.
Returns a tuple of the full set of tags found in the specified repository including those that are no longer alive ( unless active_tags_only is True ) and whether additional tags exist .
"""
    Returns a tuple of the full set of tags found in the specified repository, including those that
    are no longer alive (unless active_tags_only is True), and whether additional tags exist. If
    specific_tag_name is given, the tags are further filtered by name. If since is given, tags are
    further filtered to newer than that date.

    Note that the returned Manifest will not contain the manifest contents.
    """
repository_id
page
page_size
specific_tag_name
active_tags_only
since_time_ms