mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-14 00:11:28 +05:30
2275377a31
Signed-off-by: David Calavera <david.calavera@gmail.com>
22 lines
630 B
Go
22 lines
630 B
Go
package credentials
|
|
|
|
import "errors"
|
|
|
|
// Credentials holds the information shared between docker and the credentials store.
|
|
type Credentials struct {
|
|
ServerURL string
|
|
Username string
|
|
Secret string
|
|
}
|
|
|
|
// Helper is the interface a credentials store helper must implement.
|
|
type Helper interface {
|
|
Add(*Credentials) error
|
|
Delete(serverURL string) error
|
|
Get(serverURL string) (string, string, error)
|
|
}
|
|
|
|
// ErrCredentialsNotFound standarizes the not found error, so every helper returns
|
|
// the same message and docker can handle it properly.
|
|
var ErrCredentialsNotFound = errors.New("credentials not found in native keychain")
|