package credentials
import "github.com/docker/docker/cliconfig/credentials"
Index ¶
Functions ¶
func DetectDefaultStore ¶
func DetectDefaultStore(c *configfile.ConfigFile)
DetectDefaultStore sets the default credentials store if the host includes the default store helper program.
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.
func NewFileStore ¶
func NewFileStore(file *configfile.ConfigFile) Store
NewFileStore creates a new file credentials store.
func NewNativeStore ¶
func NewNativeStore(file *configfile.ConfigFile, helperSuffix string) Store
NewNativeStore creates a new native store that uses a remote helper program to manage credentials.
Source Files ¶
credentials.go default_store.go default_store_unsupported.go file_store.go native_store.go
- Version
- v1.13.0-rc4
- Published
- Dec 16, 2016
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 5 minutes ago –
Tools for package owners.