data/registry_model/manifestbuilder.py
def commit_tag_and_manifest(self, tag_name, layer):
        """
        Commits a new tag + manifest for that tag to the repository with the given name, pointing to
        the given layer.
        """
        legacy_image = registry_model.get_legacy_image(self._repository_ref, layer.layer_id)
        if legacy_image is None:
            return None

        tag = registry_model.retarget_tag(
            self._repository_ref, tag_name, legacy_image, self._storage, self._legacy_signing_key
        )
        if tag is None:
            return None

        self._builder_state.tags[tag_name] = tag._db_id
        self._save_to_session()
        return tag

        Commits a new tag + manifest for that tag to the repository with the given name, pointing to
        the given layer.
        
Commits a new tag + manifest for that tag to the repository with the given name, pointing to
the given layer.
Commits a new tag + manifest for that tag to the repository with the given name pointing to the given layer .
def commit_tag_and_manifest(self, tag_name, layer):
        legacy_image = registry_model.get_legacy_image(self._repository_ref, layer.layer_id)
        if legacy_image is None:
            return None
        tag = registry_model.retarget_tag(
            self._repository_ref, tag_name, legacy_image, self._storage, self._legacy_signing_key
        )
        if tag is None:
            return None
        self._builder_state.tags[tag_name] = tag._db_id
        self._save_to_session()
        return tag
def commit_tag_and_manifest ( self , tag_name , layer ) : legacy_image = registry_model . get_legacy_image ( self . _repository_ref , layer . layer_id ) if legacy_image is None : return None tag = registry_model . retarget_tag ( self . _repository_ref , tag_name , legacy_image , self . _storage , self . _legacy_signing_key ) if tag is None : return None self . _builder_state . tags [ tag_name ] = tag . _db_id self . _save_to_session ( ) return tag
Commits a new tag + manifest for that tag to the repository with the given name, pointing to
the given layer.
Commits a new tag + manifest for that tag to the repository with the given name pointing to the given layer .
"""
        Commits a new tag + manifest for that tag to the repository with the given name, pointing to
        the given layer.
        """
self
tag_name
layer