package
5.34.0
Repository: https://github.com/containers/image.git
Documentation: pkg.go.dev

# Functions

GetAllCredentials returns the registry credentials for all registries stored in any of the configured credential helpers.
GetAuthentication returns the registry credentials matching key, appropriate for sys and the users’ configuration.
GetCredentials returns the registry credentials matching key, appropriate for sys and the users’ configuration.
GetCredentialsForRef returns the registry credentials necessary for accessing ref on the registry ref points to, appropriate for sys and the users’ configuration.
RemoveAllAuthentication deletes all the credentials stored in credential helpers and auth files.
RemoveAuthentication removes credentials for `key` from all possible sources such as credential helpers and auth files.
SetAuthentication stores the username and password in the credential helper or file See the documentation of SetCredentials for format of "key".
SetCredentials stores the username and password in a location appropriate for sys and the users’ configuration.

# Variables

ErrNotLoggedIn is returned for users not logged into a registry that they are trying to logout of.
ErrNotSupported is returned for unsupported methods.