def _manifest_exists(self, image):
"""Check the remote for the given manifest by digest."""
# GET the manifest by digest, and check for 200
resp, unused_content = self._transport.Request(
'{base_url}/manifests/{digest}'.format(
base_url=self._base_url(),
digest=image.digest()),
method='GET', accepted_codes=[httplib.OK, httplib.NOT_FOUND])
return resp.status == httplib.OK # pytype: disable=attribute-error
评论列表
文章目录