1
0
mirror of https://github.com/docker/docker-credential-helpers.git synced 2026-06-14 00:11:28 +05:30

Move away from password as a name. We store secrets.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera
2016-03-09 15:18:48 -05:00
parent 0fb2225199
commit 2275377a31
14 changed files with 59 additions and 59 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ import (
type credentialsGetResponse struct {
Username string
Password string
Secret string
}
// Serve initializes the credentials helper and parses the action argument.
@@ -73,14 +73,14 @@ func get(helper Helper, reader io.Reader, writer io.Writer) error {
serverURL := strings.TrimSpace(buffer.String())
username, password, err := helper.Get(serverURL)
username, secret, err := helper.Get(serverURL)
if err != nil {
return err
}
resp := credentialsGetResponse{
Username: username,
Password: password,
Secret: secret,
}
buffer.Reset()