docker_session_.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:containerregistry 作者: google 项目源码 文件源码
def _remote_tag_digest(self):
    """Check the remote for the given manifest by digest."""

    # GET the tag we're pushing
    resp, unused_content = self._transport.Request(
        '{base_url}/manifests/{tag}'.format(
            base_url=self._base_url(),
            tag=self._name.tag),  # pytype: disable=attribute-error
        method='GET', accepted_codes=[httplib.OK, httplib.NOT_FOUND])

    if resp.status == httplib.NOT_FOUND:  # pytype: disable=attribute-error
      return None

    return resp.get('docker-content-digest')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号