1
0
mirror of https://github.com/docker/docker-credential-helpers.git synced 2026-06-13 16:01:28 +05:30

Implement credential programs reading from Stdin.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera
2016-02-09 10:53:34 -08:00
parent de9748d6ed
commit f4a0e81b0b
7 changed files with 266 additions and 71 deletions
+6
View File
@@ -1,5 +1,7 @@
package credentials
import "errors"
// Credentials holds the information shared between docker and the credentials store.
type Credentials struct {
ServerURL string
@@ -13,3 +15,7 @@ type Helper interface {
Delete(serverURL string) error
Get(serverURL string) (string, string, error)
}
// Standarize the not found error, so every helper returns
// the same message and docker can handle it properly.
var NotFoundError = errors.New("credentials not found in native keychain")