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 has 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
matchincredential_action.
Functionsยง
- auth_
token - Returns the token to use for the given registry.
If a
login_urlis provided and a token is not available, thelogin_urlwill 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.
- get_
credential_ ๐libsecret - Retrieves a cached instance of
LibSecretCredential. Must be cached to avoid repeated load/unload cycles, which are not supported byglib. - 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.