resolveCredentials
Function: resolveCredentials()
resolveCredentials(
registry,explicit?,dockerConfig?,helper?):RegistryCredentials
Defined in: packages/oci/src/auth.ts:131
Find the credentials of a registry
Order: the explicit credentials, the Docker configuration (credHelpers, auths, then credsStore).
Without credentials, the registry is used anonymously.
Parameters
registry
string
registry from the image reference
explicit?
Record<string, RegistryCredentials> = {}
credentials per registry from the parameters
dockerConfig?
any = ...
the Docker configuration, see readDockerConfig
helper?
(helper, serverUrl) => RegistryCredentials
credential helper runner, for tests
Returns
the credentials, undefined for anonymous access