Optionaloptions: OciClientOptionsFetches a blob and verifies it against descriptor: exactly
descriptor.size bytes (never more than maxBytes) hashing to
descriptor.digest. Redirects (registries hand blobs to a CDN) are
followed without Authorization.
Fetches a manifest or index by digest (preferred when both are present)
or tag. The digest is always computed from the received bytes; it must
equal ref.digest when the reference pins one, and a
Docker-Content-Digest header, when the registry sends one, is checked
as well (its absence is fine: some registries omit it).
Optionaloptions: { signal?: AbortSignal }Uploads bytes as a blob and returns its digest and size. When the
registry already holds a blob with that digest and size, nothing is
uploaded. Otherwise a monolithic upload: POST /blobs/uploads/, then
one PUT of the whole buffer to the returned Location (same origin
only) with ?digest=. A Docker-Content-Digest reply must match.
Optionaloptions: { signal?: AbortSignal }Uploads the OCI empty config blob ({}, 2 bytes) that
buildImageManifest references by default, and returns its descriptor.
Optionaloptions: { signal?: AbortSignal }Pushes a manifest or index whose own mediaType field equals
mediaType, by ref.tag when present, else by its digest (a pinned
ref.digest must match). Without allowOverwrite, an existing tag is
TAG_EXISTS; that check runs before the PUT and is not atomic.
Every blob the manifest names must already be in the repository.
Optionaloptions: OciPushManifestOptionsLists every tag, following Link: <...>; rel="next" pagination. A
relative link resolves against the page URL; an absolute one must stay on
the registry origin. More than maxPages (default 100) pages is
PROTOCOL, as is a link that revisits a page.
Optionaloptions: { maxPages?: number; signal?: AbortSignal }
OCI distribution client: list tags, fetch a manifest, fetch a digest-verified blob, and push blobs and manifests. Every request starts anonymous and authenticates only when the registry answers 401 (see
RegistryAuthfor where credentials may and may not go). Pulls ask forrepository:<repo>:pull, pushes forrepository:<repo>:pull,push; tokens are cached per scope, so the two never share one.