_Registry
Pull access to one repository of a distribution registry, with the node's credential for it.
Attributes
attributeclient= clientattributecredential= registries.credential(self.registry, auths or {})attributeheadersdict[str, str]= {'Accept': ', '.join(MANIFEST_TYPES)}Functions
constructor__init__(client, image, auths=None) -> Noneparamclienthttpx.Clientparamimagestrparamauthsdict[str, tuple[str, str]] | None= NoneReturns
Nonefunc_url(kind, reference) -> strparamkindstrparamreferencestrReturns
strfunc_authorize(response) -> boolAnswer a 401 with the token its challenge asks for, or basic authentication; False when neither serves.
paramresponsehttpx.ResponseReturns
boolfuncmanifest(reference) -> dict[str, Any]Return a manifest or index by tag or digest.
paramreferencestrReturns
dict[str, typing.Any]funclayer_digest(arch) -> strReturn the digest of the first layer of the tag's image for arch.
paramarchstrReturns
strfuncdownload_blob(digest, destination) -> intStream a blob to destination, checking its digest; returns its size.
paramdigeststrparamdestinationstrReturns
int