mirror of
https://github.com/kreuzwerker/terraform-provider-docker.git
synced 2025-12-29 02:59:59 -05:00
Multiple fixes for handling private registries and login credential retrieval on OSX. - Fixes check for image locally before pulling it: #24 - Fixes image prefix workaround: #120 - Fixes passing of the `--with-registry-auth` flag: #77 - Fixes docker registry credentials in osxkeychain: #125
14 lines
509 B
Go
14 lines
509 B
Go
package credentials
|
|
|
|
// Helper is the interface a credentials store helper must implement.
|
|
type Helper interface {
|
|
// Add appends credentials to the store.
|
|
Add(*Credentials) error
|
|
// Delete removes credentials from the store.
|
|
Delete(serverURL string) error
|
|
// Get retrieves credentials from the store.
|
|
// It returns username and secret as strings.
|
|
Get(serverURL string) (string, string, error)
|
|
// List returns the stored serverURLs and their associated usernames.
|
|
List() (map[string]string, error)
|
|
}
|