Expand description
Registry authentication support.
Structs§
- Authorization
Error - An authorization error from accessing a registry.
- Registry
Config [registries.NAME]
tables.- Registry
Config Extended - The
[registry]
table, which more keys than the[registries.NAME]
tables.
Enums§
Statics§
- BUILT_
IN_ 🔒PROVIDERS - List of credential providers built-in to Cargo.
Keep in sync with the
match
incredential_action
.
Functions§
- auth_
token - Returns the token to use for the given registry.
If a
login_url
is provided and a token is not available, thelogin_url
will be included in the returned error. - auth_
token_ 🔒optional - Returns the token to use for the given registry.
- cache_
token_ from_ commandline - Store a token in the cache for future calls.
- credential_
action 🔒 - credential_
provider 🔒 - Get the list of credential providers for a registry source.
- login
- Log in to the given registry.
- logout
- Log out from the given registry.
- registry_
credential_ config_ raw - Get the credential configuration for a
SourceId
. - registry_
credential_ 🔒config_ raw_ uncached - resolve_
credential_ 🔒alias - Use the
[credential-alias]
table to see if the provider name has been aliased.