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

changes to wincred, completes list functionality in windows

Signed-off-by: avaid96 <avaid1996@gmail.com>
This commit is contained in:
avaid96
2016-07-16 11:59:43 -07:00
parent b63a32e7a2
commit 5b764cc13a
5 changed files with 63 additions and 6 deletions
+7 -1
View File
@@ -39,9 +39,15 @@ func (h Wincred) Get(serverURL string) (string, string, error) {
}
func (h Wincred) List() ([]string, []string, error) {
accts, paths, err := winc.List()
creds, err := winc.List()
paths := make([]string, len(creds))
accts := make([]string, len(creds))
if err != nil {
return err
}
for i := range(creds) {
paths[i] = creds[i].TargetName
accts[i] = creds[i].UserName
}
return paths, accts, nil
}