prefer `pass` backend if it is available

Signed-off-by: Tycho Andersen <tycho@docker.com>
This commit is contained in:
Tycho Andersen 2017-08-16 14:09:15 -06:00
parent 6bd5c63c78
commit 713e87e780
1 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,13 @@
package credentials
import (
"github.com/docker/docker-credential-helpers/pass"
)
func defaultCredentialsStore() string {
if pass.PassInitialized {
return "pass"
}
return "secretservice"
}