Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToHostname ¶
ConvertToHostname normalizes a registry URL which has http|https prepended to just its hostname. It is used to match credentials, which may be either stored as hostname or as hostname including scheme (in legacy configuration files).
It's the equivalent to registry.ConvertToHostname in the daemon.
Types ¶
type Store ¶
type Store interface {
// Erase removes credentials from the store for a given server.
Erase(serverAddress string) error
// Get retrieves credentials from the store for a given server.
Get(serverAddress string) (types.AuthConfig, error)
// GetAll retrieves all the credentials from the store.
GetAll() (map[string]types.AuthConfig, error)
// Store saves credentials in the store.
Store(authConfig types.AuthConfig) error
}
Store is the interface that any credentials store must implement.
Source Files
¶
- credentials.go
- default_store.go
- default_store_linux.go
- file_store.go
- native_store.go
Click to show internal directories.
Click to hide internal directories.