code: def get_digests(self):
          
  
          try:
              pulp = get_manifests_in_pulp_repository(self.workflow)
          except KeyError:
              pulp = None
  
          digests = {}  # repository -> digests
          for registry in self.workflow.push_conf.docker_registries:
              for image in self.workflow.tag_conf.images:
                  image_str = image.to_str()
                  if image_str in registry.digests:
                      image_digests = registry.digests[image_str]
                      if pulp is None:
                          digest_list = [image_digests.default]
                      else:
                          # If Pulp is enabled, only report digests that
                          # were synced into Pulp. This may not be all
                          # of them, depending on whether Pulp has
                          # schema 2 support.
                          digest_list = [digest for digest in (image_digests.v1,
                                                               image_digests.v2)
                                         if digest in pulp]
  
                      digests[image.to_str(registry=False)] = digest_list
  
          return digests
docs: Returns a map of images to their digests