SealSkin

_Registry

Pull access to one repository of a distribution registry, with the node's credential for it.

Attributes

attributeclient
= client
attributecredential
= registries.credential(self.registry, auths or {})
attributeheadersdict[str, str]
= {'Accept': ', '.join(MANIFEST_TYPES)}

Functions

constructor__init__(client, image, auths=None) -> None
paramclienthttpx.Client
paramimagestr
paramauthsdict[str, tuple[str, str]] | None
= None

Returns

None
func_url(kind, reference) -> str
paramkindstr
paramreferencestr

Returns

str
func_authorize(response) -> bool

Answer a 401 with the token its challenge asks for, or basic authentication; False when neither serves.

paramresponsehttpx.Response

Returns

bool
funcmanifest(reference) -> dict[str, Any]

Return a manifest or index by tag or digest.

paramreferencestr

Returns

dict[str, typing.Any]
funclayer_digest(arch) -> str

Return the digest of the first layer of the tag's image for arch.

paramarchstr

Returns

str
funcdownload_blob(digest, destination) -> int

Stream a blob to destination, checking its digest; returns its size.

paramdigeststr
paramdestinationstr

Returns

int